Skip to content

Commit d9dc551

Browse files
committed
Update pass.service.ts
1 parent ea8d2e2 commit d9dc551

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pass/service/pass.service.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ export class PassService {
6969
azure_id: azureId,
7070
});
7171
} catch (e) {
72-
return await this.userPassRepository.findOne({
73-
where: { azure_id: azureId },
74-
});
72+
this.logger.error("Can't save user to database", e);
7573
}
74+
75+
return await this.userPassRepository.findOne({
76+
where: { azure_id: azureId },
77+
});
7678
}
7779
async getUsersFromAzureId(azureId: string[], accessToken: string) {
7880
if (!azureId || azureId.length === 0) {

0 commit comments

Comments
 (0)