This commit is contained in:
cool 2024-04-15 14:14:28 +08:00
parent f04caaca0e
commit b4152eb183
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import { BaseEntity } from '@cool-midway/core';
import { BeforeRemove, Column, Entity, Index } from 'typeorm';
import { Column, Entity, Index } from 'typeorm';
/**
* -

View File

@ -46,6 +46,7 @@ export class RecycleDataService extends BaseService {
*/
async record(params) {
const { ctx, data, entity } = params;
if (!ctx?.req) return;
const dataSourceName =
this.typeORMDataSourceManager.getDataSourceNameByModel(entity.target);
const url = ctx?.url;