Skip to content

Commit

Permalink
Fix delete endpoint raising error
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Sep 11, 2023
1 parent 14cbbe5 commit 68af642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worker/src/buckets/api/deleteObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export class DeleteObject extends OpenAPIRoute {
const bucket = env[data.params.bucket]
const key = decodeURIComponent(escape(atob(data.body.key)))

return await bucket.delete(key)
await bucket.delete(key)

return {}
}
}

0 comments on commit 68af642

Please sign in to comment.