From c8021a42b7fb094e587325bf855fc3133b6b96b0 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sat, 29 Oct 2022 22:49:30 +0200 Subject: [PATCH] fix: visitor count doesn't get incremented --- backend/src/share/guard/shareSecurity.guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/share/guard/shareSecurity.guard.ts b/backend/src/share/guard/shareSecurity.guard.ts index 028689cd..429eeaa1 100644 --- a/backend/src/share/guard/shareSecurity.guard.ts +++ b/backend/src/share/guard/shareSecurity.guard.ts @@ -47,7 +47,7 @@ export class ShareSecurityGuard implements CanActivate { "share_password_required" ); - if (!this.shareService.verifyShareToken(shareId, shareToken)) + if (!await this.shareService.verifyShareToken(shareId, shareToken)) throw new ForbiddenException( "Share token required", "share_token_required"