[GH-ISSUE #74] Transaction Logging error on instantiating AceBaseLocalSettings #53

Closed
opened 2026-05-23 08:28:24 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @paradis-A on GitHub (Feb 22, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/74

Originally assigned to: @appy-one on GitHub.

I was trying to use transaction logging then got this error:
TypeError: Cannot set properties of undefined (setting 'transactions')
at new AceBaseLocalSettings (C:\System\lenlen\lendb-server\node_modules\acebase\src\acebase-local.js:20:42)
at new AceBase (C:\System\lenlen\lendb-server\node_modules\acebase\src\acebase-local.js:33:19)
at Object. (C:\System\lenlen\lendb-server\test\refupdates.spec.js:2:12)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47

fortunately i tried to fix it at acebase-local.js line 19 with this:

if (this.storage && typeof options.transactions === 'object') {
    this.storage.transactions = options.transactions;
}

dont know it'll produce bad effect in the code i just need it to propagate sorted query without re-querying all over again.

Originally created by @paradis-A on GitHub (Feb 22, 2022). Original GitHub issue: https://github.com/appy-one/acebase/issues/74 Originally assigned to: @appy-one on GitHub. I was trying to use transaction logging then got this error: TypeError: Cannot set properties of undefined (setting 'transactions') at new AceBaseLocalSettings (C:\System\lenlen\lendb-server\node_modules\acebase\src\acebase-local.js:20:42) at new AceBase (C:\System\lenlen\lendb-server\node_modules\acebase\src\acebase-local.js:33:19) at Object.<anonymous> (C:\System\lenlen\lendb-server\test\refupdates.spec.js:2:12) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 fortunately i tried to fix it at acebase-local.js line 19 with this: ```js if (this.storage && typeof options.transactions === 'object') { this.storage.transactions = options.transactions; } ``` dont know it'll produce bad effect in the code i just need it to propagate sorted query without re-querying all over again.
gitea-mirror 2026-05-23 08:28:24 -06:00
Author
Owner

@appy-one commented on GitHub (Feb 23, 2022):

Thanks, I'll fix that

<!-- gh-comment-id:1048546099 --> @appy-one commented on GitHub (Feb 23, 2022): Thanks, I'll fix that
Author
Owner

@appy-one commented on GitHub (Feb 23, 2022):

Fixed in v1.15.1, thanks for reporting!

<!-- gh-comment-id:1048762642 --> @appy-one commented on GitHub (Feb 23, 2022): Fixed in v1.15.1, thanks for reporting!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#53
No description provided.