Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
icowan committed Dec 4, 2019
1 parent 6f09cf3 commit 813c118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/repository/mongodb/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (m *mongoRepository) Store(redirect *service.Redirect) error {
_, err := collection.InsertOne(ctx, bson.M{
"code": redirect.Code,
"url": redirect.URL,
"created_at": redirect.CreatedAt,
"created_at": redirect.CreatedAt.Format("2006-01-02 15:04:05"),
})

if err != nil {
Expand Down

0 comments on commit 813c118

Please sign in to comment.