remove relation between request and invoice
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user