- fix bug in CancelJdPromotion
This commit is contained in:
@@ -534,7 +534,7 @@ func GetJdPromotions(ctx *jxcontext.Context, keyword string, params map[string]i
|
||||
|
||||
func CancelJdPromotion(ctx *jxcontext.Context, promotionID int) (err error) {
|
||||
db := dao.GetDB()
|
||||
promotion := model.Promotion{}
|
||||
promotion := &model.Promotion{}
|
||||
promotion.ID = promotionID
|
||||
if err = dao.GetEntity(db, promotion); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user