mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-04-20 16:47:29 -05:00
14 lines
526 B
Go
14 lines
526 B
Go
package database
|
|
|
|
import nexproto "github.com/PretendoNetwork/nex-protocols-go"
|
|
|
|
func UpdateUserPrincipalPreference(pid uint32, principalPreference *nexproto.PrincipalPreference) {
|
|
if err := cassandraClusterSession.Query(`UPDATE pretendo_friends.preferences SET
|
|
show_online=?,
|
|
show_current_game=?,
|
|
block_friend_requests=?
|
|
WHERE pid=?`, principalPreference.ShowOnlinePresence, principalPreference.ShowCurrentTitle, principalPreference.BlockFriendRequests, pid).Exec(); err != nil {
|
|
logger.Critical(err.Error())
|
|
}
|
|
}
|