chore: Track lastActiveAt for teams (#6491)
This commit is contained in:
@@ -122,10 +122,13 @@ export default function auth(options: AuthenticationOptions = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
// not awaiting the promise here so that the request is not blocked
|
||||
// not awaiting the promises here so that the request is not blocked
|
||||
user.updateActiveAt(ctx).catch((err) => {
|
||||
Logger.error("Failed to update user activeAt", err);
|
||||
});
|
||||
user.team?.updateActiveAt().catch((err) => {
|
||||
Logger.error("Failed to update team activeAt", err);
|
||||
});
|
||||
|
||||
ctx.state.auth = {
|
||||
user,
|
||||
|
||||
Reference in New Issue
Block a user