Removed unused param dirname
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f17e9058b3
commit
2ab7999816
|
@ -29,7 +29,6 @@ module.exports = {
|
||||||
* Makes a query from a SQL file
|
* Makes a query from a SQL file
|
||||||
* @param {String} queryName - The SQL file name
|
* @param {String} queryName - The SQL file name
|
||||||
* @param {Object} params - Parameterized values
|
* @param {Object} params - Parameterized values
|
||||||
* @param {Object} dirname - Referenced path
|
|
||||||
*
|
*
|
||||||
* @return {Object} - Result promise
|
* @return {Object} - Result promise
|
||||||
*/
|
*/
|
||||||
|
@ -54,12 +53,11 @@ module.exports = {
|
||||||
* Returns the first row from a given SQL file
|
* Returns the first row from a given SQL file
|
||||||
* @param {String} queryName - The SQL file name
|
* @param {String} queryName - The SQL file name
|
||||||
* @param {Object} params - Parameterized values
|
* @param {Object} params - Parameterized values
|
||||||
* @param {Object} dirname - Referenced path
|
|
||||||
*
|
*
|
||||||
* @return {Object} - Result promise
|
* @return {Object} - Result promise
|
||||||
*/
|
*/
|
||||||
findOneFromDef(queryName, params, dirname) {
|
findOneFromDef(queryName, params) {
|
||||||
return this.rawSqlFromDef(queryName, params, dirname)
|
return this.rawSqlFromDef(queryName, params)
|
||||||
.then(([row]) => row);
|
.then(([row]) => row);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -80,12 +78,11 @@ module.exports = {
|
||||||
* Returns the first property from a given SQL file
|
* Returns the first property from a given SQL file
|
||||||
* @param {String} queryName - The SQL file name
|
* @param {String} queryName - The SQL file name
|
||||||
* @param {Object} params - Parameterized values
|
* @param {Object} params - Parameterized values
|
||||||
* @param {Object} dirname - Referenced path
|
|
||||||
*
|
*
|
||||||
* @return {Object} - Result promise
|
* @return {Object} - Result promise
|
||||||
*/
|
*/
|
||||||
findValueFromDef(queryName, params, dirname) {
|
findValueFromDef(queryName, params) {
|
||||||
return this.findOneFromDef(queryName, params, dirname).then(row => {
|
return this.findOneFromDef(queryName, params).then(row => {
|
||||||
return Object.values(row)[0];
|
return Object.values(row)[0];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue