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