mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 14:55:42 +00:00
cmd: fix unclosed
This commit is contained in:
@@ -228,8 +228,9 @@ func applyConsolidation(ctx context.Context, db *gorm.DB, groups []duplicateGrou
|
|||||||
|
|
||||||
// Delete absorbed product_warehouses
|
// Delete absorbed product_warehouses
|
||||||
res = tx.WithContext(ctx).
|
res = tx.WithContext(ctx).
|
||||||
|
Table("product_warehouses").
|
||||||
Where("id IN ?", absorbedIDs).
|
Where("id IN ?", absorbedIDs).
|
||||||
Delete(&struct{}{})
|
Delete(nil)
|
||||||
if res.Error != nil {
|
if res.Error != nil {
|
||||||
return fmt.Errorf("delete absorbed: %w", res.Error)
|
return fmt.Errorf("delete absorbed: %w", res.Error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user