Merge branch 'dev' into 5914-warmfix-renameTable
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
aed673cea3
|
@ -21,7 +21,8 @@ module.exports = Self => {
|
||||||
|
|
||||||
const argString = params.map(() => '?').join(',');
|
const argString = params.map(() => '?').join(',');
|
||||||
|
|
||||||
const [response] = await models.ProcsPriv.rawSql(query + `(${argString})`, params, myOptions);
|
const response = await models.ProcsPriv.rawSql(query + `(${argString})`, params, myOptions);
|
||||||
return response;
|
if (!Array.isArray(response)) return;
|
||||||
|
return response[0];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('executeFunc', {
|
Self.remoteMethodCtx('executeFunc', {
|
||||||
description: 'Return result of function',
|
description: 'Return result of function',
|
||||||
accessType: '*',
|
accessType: 'EXECUTE',
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
arg: 'routine',
|
arg: 'routine',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('executeProc', {
|
Self.remoteMethodCtx('executeProc', {
|
||||||
description: 'Return result of procedure',
|
description: 'Return result of procedure',
|
||||||
accessType: '*',
|
accessType: 'EXECUTE',
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
arg: 'routine',
|
arg: 'routine',
|
||||||
|
|
Loading…
Reference in New Issue