database: Fix max user ID

This commit is contained in:
TheLordScruffy 2023-10-19 23:13:19 -04:00
parent 270a728d02
commit 5a5373afdc

View File

@ -40,7 +40,7 @@ func (user *User) CreateUser(pool *pgxpool.Pool, ctx context.Context) {
func GetUniqueUserID() int64 {
// Not guaranteed unique but doesn't matter in practice if multiple people have the same user ID.
return rand.Int63n(100000000000000)
return rand.Int63n(0x80000000000)
}
func UpdateUser(pool *pgxpool.Pool, ctx context.Context, firstName string, lastName string, userId int64) User {