[이민우] 운영툴 개선

- 쿠폰 만료시간 못가져오는 이슈 수정
This commit is contained in:
2024-01-22 17:43:53 +09:00
parent 0c678947cd
commit 28dc84769d

View File

@ -320,7 +320,7 @@ func useCoupon(mongoClient gocommon.MongoClient, w http.ResponseWriter, r *http.
"_id": roundObj,
}, bson.M{
"$push": bson.M{"used": key},
}, &coupon, options.FindOneAndUpdate().SetProjection(bson.M{"effect": 1})); err != nil {
}, &coupon, options.FindOneAndUpdate().SetProjection(bson.M{"effect": 1, "expire": 1})); err != nil {
logger.Println(err)
w.WriteHeader(http.StatusInternalServerError)
return