mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 09:05:49 +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(
|
||||
createHttpError(
|
||||
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, {
|
||||
data: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue