refactor: deleted comment
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jon Elias 2024-10-15 09:03:15 +02:00
parent 07849ebeb8
commit e334152acc
1 changed files with 6 additions and 7 deletions

View File

@ -83,7 +83,12 @@ module.exports = Self => {
const models = Self.app.models;
const args = ctx.args;
// Apply filter by team
if (typeof options == 'object')
Object.assign(myOptions, options);
if (ctx.args.mine)
ctx.args.attenderFk = userId;
const teamMembersId = [];
if (args.myTeam != null) {
const worker = await models.Worker.findById(userId, {
@ -99,12 +104,6 @@ module.exports = Self => {
teamMembersId.push(userId);
}
if (typeof options == 'object')
Object.assign(myOptions, options);
if (ctx.args.mine)
ctx.args.attenderFk = userId;
let where = buildFilter(ctx.args, (param, value) => {
switch (param) {
case 'search':