Skip to content

Commit 6f99a08

Browse files
committed
feat: use the find first method to attach user
1 parent fe01fc3 commit 6f99a08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api/src/sessions/sessions.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class SessionsService {
3636
let user: null | Omit<User, 'hashedPassword'> = null;
3737

3838
if (userId) {
39-
user = await this.prismaClient.user.findUnique({
39+
user = await this.prismaClient.user.findFirst({
4040
where: {
4141
username: userId
4242
}

0 commit comments

Comments
 (0)