Compare commits
2 Commits
4e294430c2
...
f6e588cc72
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | f6e588cc72 | |
Vitaliy Filippov | 3c759c1d14 |
|
@ -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;
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue