Compare commits

...

2 Commits

2 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
// (c) Vitaliy Filippov, 2024 // (c) Vitaliy Filippov, 2024
// License: Mozilla Public License 2.0 or Vitastor Network Public License 1.1 // License: Mozilla Public License 2.0 or Vitastor Network Public License 1.1
class RequestError class RequestError extends Error
{ {
constructor(code, text, details) constructor(code, text, details)
{ {
super();
this.code = code; this.code = code;
this.message = text; this.message = text;
this.details = details; this.details = details;

View File

@ -444,7 +444,7 @@ class EtcTree
} }
for (const key in this.leases[id].keys) for (const key in this.leases[id].keys)
{ {
this._delete_range({ key }, next_revision, notifications); this._delete_range({ key: this.use_base64 ? this.b64(key) : key }, next_revision, notifications);
} }
delete this.leases[id]; delete this.leases[id];
} }