wip
This commit is contained in:
parent
4ef79d4389
commit
e4739d572f
@ -66,7 +66,11 @@ func (s *storage) StoreProductionOrder(ctx context.Context, in *types.Production
|
||||
|
||||
// ConfirmBundle implements Storager.
|
||||
func (s *storage) ConfirmBundle(ctx context.Context, barcode string) error {
|
||||
return s.db.Model(&types.BundleData{}).Where("nromatricula = ?", barcode).Update("confirmed", true).Error
|
||||
bc := &types.Barcode{}
|
||||
if err := s.db.First(&bc, barcode).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
return s.db.Model(&bc).Where("nromatricula = ?", barcode).Update("confirmed", true).Error
|
||||
}
|
||||
|
||||
// StoreBarcode implements IStorage.
|
||||
|
Loading…
Reference in New Issue
Block a user