mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-03-21 18:04:11 -05:00
Updated SQL query in accept_friendship_and_return_friend_info.go
This commit is contained in:
parent
b5b5c7419e
commit
bf4f8bfc53
|
|
@ -35,7 +35,7 @@ func AcceptFriendshipAndReturnFriendInfo(friendRequestID uint64) *nexproto.Frien
|
|||
VALUES ($1, $2, $3, true)
|
||||
ON CONFLICT (user1_pid, user2_pid)
|
||||
DO UPDATE SET
|
||||
date = $3
|
||||
date = $3,
|
||||
active = true`, senderPID, recipientPID, acceptedTime.Value())
|
||||
if err != nil {
|
||||
globals.Logger.Critical(err.Error())
|
||||
|
|
@ -47,7 +47,7 @@ func AcceptFriendshipAndReturnFriendInfo(friendRequestID uint64) *nexproto.Frien
|
|||
VALUES ($1, $2, $3, true)
|
||||
ON CONFLICT (user1_pid, user2_pid)
|
||||
DO UPDATE SET
|
||||
date = $3
|
||||
date = $3,
|
||||
active = true`, recipientPID, senderPID, acceptedTime.Value())
|
||||
if err != nil {
|
||||
globals.Logger.Critical(err.Error())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user