diff --git a/src/users/users.service.ts b/src/users/users.service.ts index d829c63..7cdb57d 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -108,6 +108,10 @@ export class UsersService { }; } + // 更新用户最后登录时间 + existingUser.lastLogin = new Date(); + await existingUser.save(); + const [profile] = await this.userProfileModel.findOrCreate({ where: { userId: existingUser.id }, defaults: { userId: existingUser.id },