We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 856d08a + e710a3e commit b9bc28dCopy full SHA for b9bc28d
1 file changed
src/utils/imageUtils.ts
@@ -70,10 +70,10 @@ export async function deleteImage(
70
supabase: SupabaseClient,
71
fileUrl: string
72
): Promise<void> {
73
+async function deleteImage(fileUrl: string) {
74
const { filePath } = extractFilePathAndNameFromUrl(fileUrl)
- if (!filePath) {
75
- throw new ApiError('Invalid file URL', 400)
76
- }
+ // ...rest of the deletion logic...
+}
77
const { error: deleteError } = await supabase
78
.storage
79
.from('images')
0 commit comments