切换批次和文件的 ID 类型为 UUID,更新相关逻辑和文档
This commit is contained in:
@@ -53,7 +53,7 @@ func (c *Cleaner) Clean() {
|
||||
bootstrap.DB.Unscoped().Where("status IN ? OR deleted_at IS NOT NULL", []string{"expired", "deleted"}).Find(&toDelete)
|
||||
|
||||
for _, batch := range toDelete {
|
||||
fmt.Printf("Deep cleaning batch: %d\n", batch.ID)
|
||||
fmt.Printf("Deep cleaning batch: %s\n", batch.ID)
|
||||
c.batchService.DeleteBatch(context.Background(), batch.ID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user