Skip to content

Commit d7676d7

Browse files
committed
Add pointer to updated at
1 parent 2c51ab7 commit d7676d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

model/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ type User struct {
1111
Username string `json:"username"`
1212
Email string `json:"email"`
1313
CreatedAt time.Time `json:"created_at"`
14-
UpdatedAt time.Time `json:"updated_at"`
14+
UpdatedAt *time.Time `json:"updated_at"`
1515
}

repository/model/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ type User struct {
1111
Username string `db:"username"`
1212
Email string `db:"email"`
1313
CreatedAt time.Time `db:"created_at"`
14-
UpdatedAt time.Time `db:"updated_at"`
14+
UpdatedAt *time.Time `db:"updated_at"`
1515
}

0 commit comments

Comments
 (0)