From 92d014965b92b8a2f88ae60eaaff43fce5d75e6e Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sat, 19 Oct 2024 15:13:24 +0200 Subject: [PATCH] Fix duplicate user error --- polyculeconnect/internal/db/user/user.go | 2 +- polyculeconnect/polyculeconnect.db | Bin 61440 -> 61440 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/polyculeconnect/internal/db/user/user.go b/polyculeconnect/internal/db/user/user.go index f3eaee0..7c874e9 100644 --- a/polyculeconnect/internal/db/user/user.go +++ b/polyculeconnect/internal/db/user/user.go @@ -22,7 +22,7 @@ const getUserQuery = ` WHERE id = ? ` const insertUserQuery = ` - INSERT INTO user (id, name, family_name, given_name, nickname, picture, updated_at, email, email_verified) + INSERT OR REPLACE INTO user (id, name, family_name, given_name, nickname, picture, updated_at, email, email_verified) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) ` diff --git a/polyculeconnect/polyculeconnect.db b/polyculeconnect/polyculeconnect.db index 970458f5669a4ec0a94a90f5ba3e01c9df1121ba..9430bab47ad99895cab480ec921bde873e1ec9b2 100644 GIT binary patch delta 636 zcma)(y=xRf7>D;O5YOz*1rZSy1T7SqV?K9xwo)%13A)C+b47&%XLn}Qi^0eR()f|H z5Q{*R?QAS8Y>cN|7X&TsvMOsw_eW)|9Ne#jkFR^R^jK=< zTK@jd9^dZ_d=nUx(@;XGgn*2g97-&5$PG3`6N;$j#e`(E$R{HIN%WucafvnjStS02f7y621D=!bj$n%v`@IHJx;H;I~>Q- zEruV{NvFDHfnIg1gnX_(8tii>(!s%$AT2W$mTg8c$fPDvgt>&ADa8=cD$~)GM5WO( zSL!agn6&zhx#s+0n_i{O#U<6BPu0r33%!-)OXtm!X?HkkB&2cq?95DWA-S2|S-93B n{oA+TnLm;a{O^aoFE1t?Fto~pY>%eCz6Qs~F&usSezNuxVwAE4 delta 158 zcmZp8z})bFd4e>f$wV1vMw5*Rvi*#Vlk56BSavh;@7^pZu#unDg{6^~bMk@p4m`XJ z3=B-XZVY^jdEJ0=R=k_t*6w5CVB%lTz<+~(Jy2*d|K#=iL)jSlvl#fZfcymh$yw)T zaWL}V0IFc%-OO`gIlqd9v86>yvU!SbVrp`du8B!-RMU0Js1z@c;k-