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.
17 lines
437 B
Go
17 lines
437 B
Go
package grpc
|
|
|
|
import (
|
|
"context"
|
|
|
|
database_wiiu "github.com/PretendoNetwork/friends/database/wiiu"
|
|
pb "github.com/PretendoNetwork/grpc-go/friends"
|
|
)
|
|
|
|
func (s *gRPCFriendsServer) DenyFriendRequest(ctx context.Context, in *pb.DenyFriendRequestRequest) (*pb.DenyFriendRequestResponse, error) {
|
|
err := database_wiiu.SetFriendRequestDenied(in.GetFriendRequestId())
|
|
|
|
return &pb.DenyFriendRequestResponse{
|
|
Success: err == nil,
|
|
}, nil
|
|
}
|