From 87bf97bf93fb71500c5bd5a63974cb983d0870cc Mon Sep 17 00:00:00 2001 From: Aaron Delasy Date: Wed, 16 Oct 2024 21:16:06 +0300 Subject: [PATCH] Fix maps TS iterator build error --- convex/maps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convex/maps.ts b/convex/maps.ts index acaf803..a2ccce2 100644 --- a/convex/maps.ts +++ b/convex/maps.ts @@ -98,12 +98,12 @@ export const seedMaps = internalMutation({ await ctx.db.delete(map._id); } - for (const [idx, map] of LEVELS.entries()) { + LEVELS.forEach((map, idx) => { ctx.db.insert("maps", { level: idx + 1, grid: map.grid, }); - } + }); }, });