delete client instead of site

This commit is contained in:
miloschwartz 2025-02-21 18:51:27 -05:00
parent a4d3a5ad4d
commit fcf6abd36e
No known key found for this signature in database

View file

@ -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,