From 7e18892053dfc6b81e549f88f303cb0861ad1d21 Mon Sep 17 00:00:00 2001 From: mkwcat Date: Sat, 16 Dec 2023 11:40:26 -0500 Subject: [PATCH] Database: Fix incorrect profile ID in call to UpdateProfile --- database/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/login.go b/database/login.go index acadc5d..2d91700 100644 --- a/database/login.go +++ b/database/login.go @@ -66,7 +66,7 @@ func LoginUserToGPCM(pool *pgxpool.Pool, ctx context.Context, userId uint64, gsb } if user.LastName == "" { - user = UpdateProfile(pool, ctx, profileId, map[string]string{ + user = UpdateProfile(pool, ctx, user.ProfileId, map[string]string{ "lastname": "000000000" + gsbrcd, }) }