Skip to content

Commit 53aaeca

Browse files
authored
Merge pull request #113 from yash-sharma-spraxa/main
Refactors options destructuring to use let for mutability
2 parents 9461ca1 + f04107c commit 53aaeca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/business/business-base.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class BusinessBase {
316316
}
317317

318318
async save(options) {
319-
const { id, relations, relationsObject, ...values } = options;
319+
let { id, relations, relationsObject, ...values } = options;
320320
if (this.beforeSave) {
321321
const result = await this.beforeSave(options);
322322
if (typeof result === 'object') {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@durlabh/dframework",
3-
"version": "1.0.45",
3+
"version": "1.0.46",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)