Compare commits
3 Commits
420498e798
...
49e9fdbfa3
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | 49e9fdbfa3 | |
Vitaliy Filippov | 143456a513 | |
Vitaliy Filippov | 210babaccc |
|
@ -131,7 +131,7 @@ class AntiEtcdCli
|
|||
{
|
||||
keys = keys.map(k => k.replace(/\/+$/, ''));
|
||||
}
|
||||
const txn = { success: keys.map(k => ({ request_delete_range: this.options.prefix ? { key: b64(key+'/'), range_end: b64(key+'0') } : { key: b64(key) } })) };
|
||||
const txn = { success: keys.map(key => ({ request_delete_range: this.options.prefix ? { key: b64(key+'/'), range_end: b64(key+'0') } : { key: b64(key) } })) };
|
||||
const res = await this.request('/v3/kv/txn', txn);
|
||||
for (const r of (res||{}).responses||[])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue