mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-15 23:17:55 +02:00
delete client instead of site
This commit is contained in:
parent
a4d3a5ad4d
commit
fcf6abd36e
1 changed files with 2 additions and 2 deletions
|
@ -43,12 +43,12 @@ export async function deleteClient(
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
HttpCode.NOT_FOUND,
|
HttpCode.NOT_FOUND,
|
||||||
`Site with ID ${clientId} not found`
|
`Client with ID ${clientId} not found`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
await db.delete(sites).where(eq(sites.siteId, clientId));
|
await db.delete(clients).where(eq(clients.clientId, clientId));
|
||||||
|
|
||||||
return response(res, {
|
return response(res, {
|
||||||
data: null,
|
data: null,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue