Database: Set lastname on create user

This commit is contained in:
mkwcat 2023-12-16 12:06:08 -05:00
parent 6b80eaa691
commit 6f44c73da2
No known key found for this signature in database
GPG Key ID: 7A505679CE9E7AA9

View File

@ -65,14 +65,14 @@ func LoginUserToGPCM(pool *pgxpool.Pool, ctx context.Context, userId uint64, gsb
}
}
if user.LastName == "" {
user = UpdateProfile(pool, ctx, user.ProfileId, map[string]string{
"lastname": "000000000" + gsbrcd,
})
}
logging.Notice("DATABASE", "Log in GPCM user:", aurora.Cyan(userId), aurora.Cyan(user.GsbrCode), "-", aurora.Cyan(user.ProfileId))
}
if user.LastName == "" {
user = UpdateProfile(pool, ctx, user.ProfileId, map[string]string{
"lastname": "000000000" + gsbrcd,
})
}
return user, true
}