Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -555,6 +555,17 @@ func UserCreateRoute(db *sql.DB) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
if err := ensureOrderPriceListUserPriceGroupSchema(db); err != nil {
|
||||
log.Printf("USER CREATE PRICE GROUP SCHEMA ERROR user_id=%d err=%v", newID, err)
|
||||
http.Error(w, "Fiyat grubu tablosu hazirlanamadi", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if err := saveOrderPriceListUserPriceGroupsTx(tx, newID, payload.OrderPriceListPriceGroups); err != nil {
|
||||
log.Printf("USER CREATE PRICE GROUP SAVE ERROR user_id=%d err=%v", newID, err)
|
||||
http.Error(w, "Fiyat gruplari eklenemedi", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
if err := tx.Commit(); err != nil {
|
||||
if pe, ok := err.(*pq.Error); ok {
|
||||
log.Printf(
|
||||
|
||||
Reference in New Issue
Block a user