remove relation between request and invoice

This commit is contained in:
2026-07-02 22:42:24 +03:30
parent f4f05babe8
commit 130618adb5
6 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ export class RequestService {
private async hardDeleteRequest(id: string, em: EntityManager) {
await this.chatService.deleteChatsByRefId(id, em);
await em.nativeUpdate(Invoice, { request: { id } }, { request: null });
await em.nativeUpdate(Invoice, { requestId: id }, { requestId: null });
await em.nativeDelete(RequestItem, { request: { id } });
await em.nativeDelete(Request, { id });
}