Skip to content

Commit

Permalink
Allow null for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Oct 7, 2024
1 parent aafa1a4 commit e8298ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/login_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
type LoginIp struct {
UserId int `db:"user_id"`
Ip string `db:"ip"`
Timestamp int64 `db:"timestamp"`
Timestamp *int64 `db:"timestamp"`
}

// InsertLoginIpAddress Logs the ip address of a user in the database
Expand Down

0 comments on commit e8298ed

Please sign in to comment.