Skip to content

Commit

Permalink
Fixed ORM bug (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe committed Sep 23, 2024
1 parent 3b3c2bc commit a79048e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/api/appusers/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export default defineEventHandler(async (event) => {

// assign the roles to the appusers
const appUsersWithRoles: AppUserRoles[] = appUserOrganizationRoles.map((a) => ({
// @ts-expect-error: The entity is actually in an 'entity' property. Is this an ORM bug?
...a.appUser.entity,
...a.appUser,
role: a.role
}))

Expand Down

0 comments on commit a79048e

Please sign in to comment.