mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-19 01:05:46 -05:00
database: Fix max user ID
This commit is contained in:
parent
270a728d02
commit
5a5373afdc
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user