[오승석] email 저장 제거
- CollectionLink에 email 저장 안함 - whitelist key 변경: Email -> Alias
This commit is contained in:
@ -306,9 +306,12 @@ func (mg *Maingate) prepare(context context.Context) (err error) {
|
||||
return logger.ErrorWithCallStack(err)
|
||||
}
|
||||
|
||||
if err = mg.mongoClient.MakeUniqueIndices(CollectionLink, map[string]bson.D{
|
||||
"emailplatform": {{Key: "email", Value: 1}, {Key: "platform", Value: 1}},
|
||||
}); err != nil {
|
||||
// if err = mg.mongoClient.MakeUniqueIndices(CollectionLink, map[string]bson.D{
|
||||
// "emailplatform": {{Key: "email", Value: 1}, {Key: "platform", Value: 1}},
|
||||
// }); err != nil {
|
||||
// return logger.ErrorWithCallStack(err)
|
||||
// }
|
||||
if err = mg.mongoClient.DropIndex(CollectionLink, "emailplatform"); err != nil {
|
||||
return logger.ErrorWithCallStack(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user