Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
fix: delete function with normalKeys true not working (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
roni0028 authored Apr 18, 2024
1 parent 5a5a3c8 commit aabcd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export class QuickDB<D = any> {
);
}

if (key.includes(".")) {
if (key.includes(".") && !this.normalKeys) {
const keySplit = key.split(".");
const obj = (await this.get<any>(keySplit[0])) ?? {};
unset(obj, keySplit.slice(1).join("."));
Expand Down

0 comments on commit aabcd7f

Please sign in to comment.