refactor: run formatter

This commit is contained in:
Elias Schneider
2022-10-16 00:14:02 +02:00
parent 83cde4778a
commit c5099ce2e8
8 changed files with 47 additions and 40 deletions

View File

@@ -34,7 +34,11 @@ export class ShareSecurityGuard implements CanActivate {
include: { security: true },
});
if (!share || (moment().isAfter(share.expiration) && moment(share.expiration).unix() !== 0))
if (
!share ||
(moment().isAfter(share.expiration) &&
moment(share.expiration).unix() !== 0)
)
throw new NotFoundException("Share not found");
if (share.security?.password && !shareToken)