Fix API Delete
This commit is contained in:
parent
cfade0e075
commit
2c85accb7f
@ -340,7 +340,7 @@ void main() async {
|
||||
var json = jsonDecode(payload);
|
||||
var id = json['id'];
|
||||
|
||||
await postgres.query('DELETE FROM public.business WHERE id=$id;');
|
||||
await postgres.query('DELETE FROM public.businesses WHERE id=$id;');
|
||||
|
||||
try {
|
||||
await File('logos/$id.png').delete();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user