쿠폰 api를 maingate 로 옮김

This commit is contained in:
2023-08-25 12:31:32 +09:00
parent d9be04541b
commit f5304fae80
5 changed files with 415 additions and 1 deletions

View File

@ -305,6 +305,12 @@ func (mg *Maingate) prepare(context context.Context) (err error) {
return makeErrorWithStack(err)
}
if err = mg.mongoClient.MakeUniqueIndices(CollectionCouponUse, map[string]bson.D{
"idrounds": {{Key: "_id", Value: 1}, {Key: "rounds", Value: 1}},
}); err != nil {
return err
}
if err = mg.mongoClient.MakeUniqueIndices(CollectionAuth, map[string]bson.D{
"skonly": {{Key: "sk", Value: 1}},
}); err != nil {