mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
perf: 优化成功后跳过的提示
This commit is contained in:
@@ -136,10 +136,13 @@ export class HistoryService extends BaseService<HistoryEntity> {
|
||||
}
|
||||
|
||||
async deleteByIds(ids: number[], userId: number) {
|
||||
await this.repository.delete({
|
||||
const condition: any = {
|
||||
id: In(ids),
|
||||
userId,
|
||||
});
|
||||
};
|
||||
if (userId != null) {
|
||||
condition.userId = userId;
|
||||
}
|
||||
await this.repository.delete(condition);
|
||||
await this.logService.deleteByHistoryIds(ids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user