From c63df30e5caf5082a073e936c4ed6b3a2a99d8da Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 20 Jun 2023 09:19:20 +0200 Subject: [PATCH] refs #5334 fix back --- modules/worker/back/methods/department/getLeaves.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/worker/back/methods/department/getLeaves.js b/modules/worker/back/methods/department/getLeaves.js index bf7c83bb0..38ff2ef3e 100644 --- a/modules/worker/back/methods/department/getLeaves.js +++ b/modules/worker/back/methods/department/getLeaves.js @@ -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();