deletion postponing

This commit is contained in:
2023-08-23 15:40:31 +02:00
parent c3179194b8
commit 17481ba03c
4 changed files with 7 additions and 14 deletions

View File

@@ -124,8 +124,8 @@ class JSONDB {
else {
for ( let entry in this.db[ table ] ) {
if ( this.db[ table ][ entry ][ operation.property ] == operation.searchQuery ) {
for ( let changed in operation.data ) {
this.db[ table ][ entry ][ changed ] = operation.data[ changed ];
for ( let changed in operation.newValues ) {
this.db[ table ][ entry ][ changed ] = operation.newValues[ changed ];
}
}
}