refs #5334 fix back
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-06-20 09:19:20 +02:00
parent a155f846c2
commit c63df30e5c
1 changed files with 1 additions and 6 deletions

View File

@ -21,15 +21,10 @@ module.exports = Self => {
});
Self.getLeaves = async(ctx, parentId = null, search) => {
const myOptions = {userId: ctx.req.accessToken.userId};
if (typeof options == 'object')
Object.assign(myOptions, options);
let [res] = await Self.rawSql(
`CALL department_getLeaves(?, ?)`,
[parentId, search],
myOptions
{userId: ctx.req.accessToken.userId}
);
let map = new Map();