fix: postgres refresh requests fail userId

This commit is contained in:
Julian Krauser 2025-02-08 11:05:01 +01:00
parent 80b083f1aa
commit c02cc81ad6
2 changed files with 3 additions and 4 deletions

View file

@ -13,7 +13,7 @@ export default abstract class UserPermissionService {
return await dataSource
.getRepository(userPermission)
.createQueryBuilder("permission")
.where("permission.userId = :userId", { userId: userId })
.where({ userId: userId })
.getMany()
.then((res) => {
return res;