fix: refs #7917 fix filter
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
5fea011222
commit
01a1e0938a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue