mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-11 00:22:49 +00:00
优化
This commit is contained in:
parent
f04caaca0e
commit
b4152eb183
@ -1,5 +1,5 @@
|
||||
import { BaseEntity } from '@cool-midway/core';
|
||||
import { BeforeRemove, Column, Entity, Index } from 'typeorm';
|
||||
import { Column, Entity, Index } from 'typeorm';
|
||||
|
||||
/**
|
||||
* 商品模块-商品信息
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user