Merge branch 'dev' into 5914-warmfix-renameTable
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-11-14 13:24:41 +00:00
commit aed673cea3
3 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,8 @@ module.exports = Self => {
const argString = params.map(() => '?').join(',');
const [response] = await models.ProcsPriv.rawSql(query + `(${argString})`, params, myOptions);
return response;
const response = await models.ProcsPriv.rawSql(query + `(${argString})`, params, myOptions);
if (!Array.isArray(response)) return;
return response[0];
};
};

View File

@ -1,7 +1,7 @@
module.exports = Self => {
Self.remoteMethodCtx('executeFunc', {
description: 'Return result of function',
accessType: '*',
accessType: 'EXECUTE',
accepts: [
{
arg: 'routine',

View File

@ -1,7 +1,7 @@
module.exports = Self => {
Self.remoteMethodCtx('executeProc', {
description: 'Return result of procedure',
accessType: '*',
accessType: 'EXECUTE',
accepts: [
{
arg: 'routine',