Skip to content

Commit

Permalink
Merge pull request #50 from webdevcody/fix-maps-ts-iterator
Browse files Browse the repository at this point in the history
Fix maps TS iterator build error
  • Loading branch information
webdevcody authored Oct 16, 2024
2 parents df5958b + 87bf97b commit 931e177
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 931e177

Please sign in to comment.