Merge pull request #1651 from automatisch/remove-role-join

chore: No need to join role since we don't expose roleId anymore
This commit is contained in:
Ömer Faruk Aydın
2024-02-25 18:36:10 +01:00
committed by GitHub
2 changed files with 0 additions and 6 deletions

View File

@@ -3,9 +3,6 @@ import User from '../../../../../models/user.js';
export default async (request, response) => {
const user = await User.query()
.leftJoinRelated({
role: true,
})
.withGraphFetched({
role: true,
})

View File

@@ -4,9 +4,6 @@ import paginateRest from '../../../../../helpers/pagination-rest.js';
export default async (request, response) => {
const usersQuery = User.query()
.leftJoinRelated({
role: true,
})
.withGraphFetched({
role: true,
})