mirror of
https://github.com/outbackdingo/pangolin.git
synced 2026-01-28 02:20:01 +00:00
delete client instead of site
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user