fix: preserve order dispatch mode
This commit is contained in:
@@ -341,7 +341,9 @@ func (s *Store) AutoMatchTaskOrder(ctx context.Context, tenantID, memberID, orde
|
||||
}
|
||||
}
|
||||
}
|
||||
if order.AutoDispatch != 1 || time.Now().UTC().Before(matchAt) {
|
||||
dispatchMode, _ := snapshot["dispatch_mode"].(string)
|
||||
isAutoDispatch := dispatchMode == "auto" || dispatchMode == "" && order.AutoDispatch == 1
|
||||
if !isAutoDispatch || time.Now().UTC().Before(matchAt) {
|
||||
return tx.Commit()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user