mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
Merge branch 'cmd/consolidate-and-repoint-stocks' into 'development'
cmd: fix unclosed See merge request mbugroup/lti-api!458
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user