1
0
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:
Matt Gibson
2025-10-09 10:10:32 -07:00
parent 5c19a7c9dd
commit 6a637001d0

View File

@@ -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) {