functions were not returning their value
This commit is contained in:
@@ -83,6 +83,7 @@ module.exports = {
|
|||||||
console.error('Failed to create payee:', payeeName);
|
console.error('Failed to create payee:', payeeName);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
return payeeId;
|
||||||
},
|
},
|
||||||
|
|
||||||
ensureCategory: async function (categoryName) {
|
ensureCategory: async function (categoryName) {
|
||||||
@@ -95,6 +96,7 @@ module.exports = {
|
|||||||
console.error('Failed to create category:', categoryName);
|
console.error('Failed to create category:', categoryName);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
return categoryId;
|
||||||
},
|
},
|
||||||
|
|
||||||
getTagValue: function (note, tag, defaultValue=undefined) {
|
getTagValue: function (note, tag, defaultValue=undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user