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, }); - } + }); }, });