From 4da3c2d0492344523c3a7afb7af25637204a5993 Mon Sep 17 00:00:00 2001 From: Michael C Date: Sun, 13 Feb 2022 16:11:17 -0500 Subject: [PATCH] force poi_highlight to be type POI --- src/routes/postLockCategories.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/postLockCategories.ts b/src/routes/postLockCategories.ts index f8ccb8d..13f7f04 100644 --- a/src/routes/postLockCategories.ts +++ b/src/routes/postLockCategories.ts @@ -106,6 +106,7 @@ type validLockArray = { category: Category, actionType: ActionType }[]; const createLockArray = (categories: Category[], actionTypes: ActionType[]): validLockArray => { const validLocks: validLockArray = []; categories.forEach(category => { + if (category === "poi_highlight") validLocks.push({ category, actionType: ActionType.Poi }); actionTypes.forEach(actionType => { if (isValidCategoryActionPair(category, actionType)) { validLocks.push({ category, actionType });