- fix bug in checkStoreExisting

This commit is contained in:
gazebo
2018-10-16 15:20:03 +08:00
parent b73aae1474
commit c5421213b2

View File

@@ -563,7 +563,7 @@ func setStoreSkuBindStatus(skuBind *model.StoreSkuBind, status int8) {
}
func checkStoreExisting(db *dao.DaoDB, storeID int) (err error) {
store := model.Store{}
store := &model.Store{}
store.ID = storeID
if err = dao.GetEntity(db, store); err != nil {
if err == orm.ErrNoRows {