fix: hotfix errorMyTeam #3229

Merged
carlossa merged 1 commits from hotfix-filterOrder into master 2024-11-21 09:23:15 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -79,12 +79,12 @@ module.exports = Self => {
const models = Self.app.models;
const conn = Self.dataSource.connector;
const myOptions = {};
const userId = ctx.req.accessToken.userId;
if (typeof options == 'object')
Object.assign(myOptions, options);
const args = ctx.args;
// Apply filter by team
const teamMembersId = [];
if (args.myTeam != null) {
@ -102,7 +102,7 @@ module.exports = Self => {
}
if (args && args.myTeam)
args.teamIds = teamIds;
args.teamIds = teamMembersId;
const where = buildFilter(args, (param, value) => {
switch (param) {