Skip to content

Commit 1904cc1

Browse files
author
jwham
committed
fix: 🐛 upsert 시 match 설정 잘못했던 부분 수정
1 parent bb324ef commit 1904cc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/activeUser/activeUser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ export class ActiveUserUpdator {
170170
await mongo
171171
.db()
172172
.collection(MV_ACTIVE_USER_COLLECTION)
173-
.updateOne(userIdByMonth, { $set: userIdByMonth }, { upsert: true });
173+
.updateOne(
174+
{ date: userIdByMonth.date },
175+
{ $set: userIdByMonth },
176+
{ upsert: true },
177+
);
174178
}
175179
}
176180

0 commit comments

Comments
 (0)