Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Aug 31, 2018
1 parent 261e96a commit 87b7cd7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server/handler_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net/http"
"strconv"
"strings"
"time"

"github.com/linkernetworks/utils/timeutils"
"github.com/linkernetworks/vortex/src/entity"
Expand Down Expand Up @@ -158,8 +157,7 @@ func createUserHandler(ctx *web.Context) {
defer session.Close()

user.ID = bson.NewObjectId()
t := time.Now()
user.CreatedAt = &t
user.CreatedAt = timeutils.Now()

if err := session.Insert(entity.UserCollectionName, &user); err != nil {
if mgo.IsDup(err) {
Expand Down

0 comments on commit 87b7cd7

Please sign in to comment.