feat: 添加重复投标项目清理脚本并更新相关逻辑

更新依赖版本,移除调试日志,修改静态文件排除规则,将投标项目查重逻辑从URL改为标题,并添加清理重复投标项目的脚本
This commit is contained in:
dmy
2026-01-13 00:39:43 +08:00
parent 5f186bfb2a
commit 5024d2c502
5 changed files with 82 additions and 5 deletions

View File

@@ -49,8 +49,8 @@ export class BidsService {
}
async createOrUpdate(data: Partial<BidItem>) {
// Use URL or a hash of URL to check for duplicates
let item = await this.bidRepository.findOne({ where: { url: data.url } });
// Use title or a hash of title to check for duplicates
let item = await this.bidRepository.findOne({ where: { title: data.title } });
if (item) {
Object.assign(item, data);
return this.bidRepository.save(item);