mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
Align down method with server seedId implementation
This commit is contained in:
@@ -29,15 +29,8 @@ export abstract class Recipe<TUp> {
|
||||
}
|
||||
|
||||
async down(): Promise<void> {
|
||||
const response = await fetch(`${webServer.url}/api/delete`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
template: this.template,
|
||||
seedId: this.seedId,
|
||||
}),
|
||||
const response = await fetch(`${webServer.url}/api/seed/${this.seedId}`, {
|
||||
method: "DELETE",
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user