fix: refs #7917 fix filter
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-12-12 18:16:06 +01:00
parent 5fea011222
commit 01a1e0938a
1 changed files with 5 additions and 1 deletions

View File

@ -108,8 +108,12 @@ module.exports = Self => {
}
});
console.log('ctx', ctx.req.accessToken.userId);
filter = mergeFilters(filter, {where});
if (ctx.req.accessToken.userId) {
if (!filter.where) filter.where = {};
filter.where[`workerFk`] = ctx.req.accessToken.userId;
}
let stmts = [];
let stmt;