Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/operations/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@
name: { contains: query.search },
},
},
{

Check warning on line 144 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Replace `······{⏎` with `{⏎··`
id: {
in: (

Check warning on line 146 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Insert `·`
await database.orgaRole.findMany({
where: {
OR: [

Check warning on line 149 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Replace `⏎··························{·userId:·{·contains:·query.search·}·},⏎··························{·commissionId:·{·contains:·query.search·}·},⏎··························` with `{·userId:·{·contains:·query.search·}·},·{·commissionId:·{·contains:·query.search·}·}`
{ userId: { contains: query.search } },
{ commissionId: { contains: query.search } },
],
},

Check warning on line 153 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Delete `··`
select: { userId: true },

Check warning on line 154 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Insert `··`
})

Check warning on line 155 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Insert `····`
).map(role => role.userId),

Check warning on line 156 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Replace `).map(role` with `······).map((role)`
},

Check warning on line 157 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Insert `············`
},

Check warning on line 158 in src/operations/user.ts

View workflow job for this annotation

GitHub Actions / lint (22)

Insert `············`
],
}
: {}),
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export type UserSearchQuery = {
payment: string;
scan: string;
place: string;
commision: string;
};

export type UserPatchBody = Partial<
Expand Down
Loading