Skip to content

Commit e8298ed

Browse files
committed
Allow null for timestamp
1 parent aafa1a4 commit e8298ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/login_ips.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type LoginIp struct {
99
UserId int `db:"user_id"`
1010
Ip string `db:"ip"`
11-
Timestamp int64 `db:"timestamp"`
11+
Timestamp *int64 `db:"timestamp"`
1212
}
1313

1414
// InsertLoginIpAddress Logs the ip address of a user in the database

0 commit comments

Comments
 (0)