mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-03 21:06:40 -05:00
fix: updateAt field on banning/unbanning users
This commit is contained in:
committed by
GitHub
parent
82e113964d
commit
c8b4392854
@@ -725,6 +725,7 @@ export const admin = <O extends AdminOptions>(options?: O) => {
|
||||
banned: false,
|
||||
banExpires: null,
|
||||
banReason: null,
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
);
|
||||
return ctx.json({
|
||||
@@ -815,6 +816,7 @@ export const admin = <O extends AdminOptions>(options?: O) => {
|
||||
: options?.defaultBanExpiresIn
|
||||
? getDate(options.defaultBanExpiresIn, "sec")
|
||||
: undefined,
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
ctx,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user