Commit a396083 1 parent adaec16 commit a396083 Copy full SHA for a396083
File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
)
9
9
10
10
const (
11
- Version string = "0.18.5 "
11
+ Version string = "0.18.6 "
12
12
)
13
13
14
14
var VersionCmd = & cobra.Command {
Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ func createIndex(ctx context.Context) {
215
215
216
216
unauthUserCollection .Indexes ().CreateMany (ctx , []mongo.IndexModel {
217
217
{
218
- Keys : bson.D {{Key : "updated_at " , Value : 1 }},
219
- Options : options .Index ().SetExpireAfterSeconds (600 ).SetName ("updated_at " ),
218
+ Keys : bson.D {{Key : "created_at " , Value : 1 }},
219
+ Options : options .Index ().SetExpireAfterSeconds (600 ).SetName ("created_at " ),
220
220
},
221
221
{
222
222
Keys : bson.D {{Key : "username" , Value : 1 }},
Original file line number Diff line number Diff line change @@ -45,4 +45,5 @@ type UnauthUserModel struct {
45
45
TelegramID int64 `bson:"telegram_id"`
46
46
Email string `bson:"email"`
47
47
AuthMethod types.AuthMethod `bson:"auth_method"`
48
+ CreatedAt primitive.DateTime `bson:"created_at"`
48
49
}
You can’t perform that action at this time.
0 commit comments