HSB-450 feature: user last active on (#4121)
* feat: userLastActiveOnInterceptor added and update func added in userService * chore: changed user model parameter description * chore: commented out docker volume for hopp-old-service * chore: changed backend to work with secure cookies --------- Co-authored-by: Balu Babu <balub997@gmail.com>
This commit is contained in:
@@ -16,7 +16,6 @@ export class UserLastLoginInterceptor implements NestInterceptor {
|
||||
intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
|
||||
const user: AuthUser = context.switchToHttp().getRequest().user;
|
||||
|
||||
const now = Date.now();
|
||||
return next.handle().pipe(
|
||||
tap(() => {
|
||||
this.userService.updateUserLastLoggedOn(user.uid);
|
||||
|
||||
Reference in New Issue
Block a user