|
|
@ -73,11 +73,11 @@ export default class Secrets extends Now { |
|
|
|
rename (nameOrId, newName) { |
|
|
|
return this.retry(async (bail, attempt) => { |
|
|
|
if (this._debug) console.time(`> [debug] #${attempt} PATCH /secrets/${nameOrId}`); |
|
|
|
const res = await this._fetch('/secrets', { |
|
|
|
const res = await this._fetch(`/secrets/${nameOrId}`, { |
|
|
|
method: 'PATCH', |
|
|
|
body: JSON.stringify({ |
|
|
|
body: { |
|
|
|
name: newName |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
if (this._debug) console.timeEnd(`> [debug] #${attempt} PATCH /secrets/${nameOrId}`); |
|
|
|
|
|
|
|