mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-12 17:42:49 +00:00
优化
This commit is contained in:
parent
f04caaca0e
commit
b4152eb183
@ -1,5 +1,5 @@
|
|||||||
import { BaseEntity } from '@cool-midway/core';
|
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) {
|
async record(params) {
|
||||||
const { ctx, data, entity } = params;
|
const { ctx, data, entity } = params;
|
||||||
|
if (!ctx?.req) return;
|
||||||
const dataSourceName =
|
const dataSourceName =
|
||||||
this.typeORMDataSourceManager.getDataSourceNameByModel(entity.target);
|
this.typeORMDataSourceManager.getDataSourceNameByModel(entity.target);
|
||||||
const url = ctx?.url;
|
const url = ctx?.url;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user