This commit is contained in:
Archer
2025-01-22 10:01:09 +08:00
committed by GitHub
parent d67474170a
commit 16629e32a7
2 changed files with 33 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ const moveUserAvatar = async () => {
if (!user.avatar) continue;
try {
await mongoSessionRun(async (session) => {
await MongoTeamMember.updateOne(
await MongoTeamMember.updateMany(
{
userId: user._id
},