You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, berrors.InternalServerError("error updating order to beganProcessing status")
852
-
}
853
841
854
-
n, err:=result.RowsAffected()
855
-
iferr!=nil||n==0 {
856
-
returnnil, berrors.OrderNotReadyError("Order was already processing. This may indicate your client finalized the same order multiple times, possibly due to a client bug.")
857
-
}
842
+
query:=`UPDATE orders SET beganProcessing = ? WHERE id = ? AND beganProcessing = ?`
returnnil, berrors.InternalServerError("error updating order to beganProcessing status")
850
+
}
851
+
852
+
n, err:=result.RowsAffected()
853
+
iferr!=nil||n==0 {
854
+
returnnil, berrors.OrderNotReadyError("Order was already processing. This may indicate your client finalized the same order multiple times, possibly due to a client bug.")
0 commit comments