refactor: añadido salto de lineas
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-10-26 13:10:17 +02:00
parent 65e32f5e7f
commit b39b28e43d
1 changed files with 2 additions and 0 deletions

View File

@ -75,8 +75,10 @@ module.exports = Self => {
const myOptions = {}; const myOptions = {};
const postalCode = []; const postalCode = [];
const args = ctx.args; const args = ctx.args;
if (typeof options == 'object') if (typeof options == 'object')
Object.assign(myOptions, options); Object.assign(myOptions, options);
if (args.zoneFk) { if (args.zoneFk) {
query = `CALL vn.zone_getPostalCode(?)`; query = `CALL vn.zone_getPostalCode(?)`;
const [geos] = await Self.rawSql(query, [args.zoneFk]); const [geos] = await Self.rawSql(query, [args.zoneFk]);