From 52bb44a56129462d2ef303c7dacb9b1a446ca081 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 29 Apr 2021 16:07:58 +0200 Subject: [PATCH] AuthService: Fix type of toAuthTokenWithSecretDto toAuthTokenDto does not return nor accept a nullish value anymore, so the types can be adjusted. Signed-off-by: David Mehren --- src/auth/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 45fa70280..52eecf9ff 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -198,9 +198,9 @@ export class AuthService { } toAuthTokenWithSecretDto( - authToken: AuthToken | null | undefined, + authToken: AuthToken, secret: string, - ): AuthTokenWithSecretDto | null { + ): AuthTokenWithSecretDto { const tokenDto = this.toAuthTokenDto(authToken); return { ...tokenDto,