From fbf22284e8814f963f0b4981051a1f53a1a5ce6a Mon Sep 17 00:00:00 2001 From: Park Dahyeon Date: Wed, 11 Nov 2026 20:18:14 +0900 Subject: [PATCH] fix: use explicit match id in temporary match seed --- .../database/dev-seeds/create-temp-finished-match.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/api/src/modules/global/database/dev-seeds/create-temp-finished-match.ts b/apps/api/src/modules/global/database/dev-seeds/create-temp-finished-match.ts index b66d713a..8a80c2ed 100644 --- a/apps/api/src/modules/global/database/dev-seeds/create-temp-finished-match.ts +++ b/apps/api/src/modules/global/database/dev-seeds/create-temp-finished-match.ts @@ -250,9 +250,10 @@ async function main() { ); } - const match = await MatchModel.create(payload); - console.log(`[temp result seed] created=${match._id.toString()}`); - console.log(`[temp result seed] route=/match/${match._id.toString()}`); + const matchId = new mongoose.Types.ObjectId(); + await MatchModel.create({ ...payload, _id: matchId }); + console.log(`[temp result seed] created=${matchId.toString()}`); + console.log(`[temp result seed] route=/match/${matchId.toString()}`); } finally { await app.close(); }