From 28dc84769d194075ce78227ceb55709e70267d50 Mon Sep 17 00:00:00 2001 From: lmw00 Date: Mon, 22 Jan 2024 17:43:53 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=9D=B4=EB=AF=BC=EC=9A=B0]=20=EC=9A=B4?= =?UTF-8?q?=EC=98=81=ED=88=B4=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 쿠폰 만료시간 못가져오는 이슈 수정 --- core/api_coupon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api_coupon.go b/core/api_coupon.go index 8bf12ef..18bda65 100644 --- a/core/api_coupon.go +++ b/core/api_coupon.go @@ -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