cmd: fix unclosed

This commit is contained in:
Adnan Zahir
2026-04-24 01:30:43 +07:00
parent 26a04d3bdd
commit befb351e49
@@ -228,8 +228,9 @@ func applyConsolidation(ctx context.Context, db *gorm.DB, groups []duplicateGrou
// Delete absorbed product_warehouses
res = tx.WithContext(ctx).
Table("product_warehouses").
Where("id IN ?", absorbedIDs).
Delete(&struct{}{})
Delete(nil)
if res.Error != nil {
return fmt.Errorf("delete absorbed: %w", res.Error)
}