Revert "[이민우] 운영툴 개선"

This reverts commit 424c8be420.
This commit is contained in:
2024-02-22 17:07:16 +09:00
parent 845784d204
commit 231b1a35d5

View File

@ -261,8 +261,8 @@ func listAllCouponNames(mongoClient gocommon.MongoClient, w http.ResponseWriter,
}
func useCoupon(mongoClient gocommon.MongoClient, w http.ResponseWriter, r *http.Request) {
acc, _ := gocommon.ReadStringFormValue(r.Form, "accid")
if len(acc) == 0 {
acc, ok := gocommon.ReadObjectIDFormValue(r.Form, "accid")
if !ok || acc.IsZero() {
w.WriteHeader(http.StatusBadRequest)
return
}