mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-04-26 07:46:54 -05:00
Replace MongoDB usage with GRPC calls to the account server. Also include documentation on the README and a Makefile.
16 lines
305 B
Go
16 lines
305 B
Go
package database_wiiu
|
|
|
|
import (
|
|
"github.com/PretendoNetwork/friends/database"
|
|
)
|
|
|
|
func SetFriendRequestReceived(friendRequestID uint64) error {
|
|
_, err := database.Postgres.Exec(`UPDATE wiiu.friend_requests SET received=true WHERE id=$1`, friendRequestID)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|