Skip to content

Commit

Permalink
Fix maps TS iterator build error
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Oct 16, 2024
1 parent 95eef06 commit 87bf97b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convex/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
});
},
});

Expand Down

0 comments on commit 87bf97b

Please sign in to comment.