friends/grpc/deny_friend_request.go
Daniel López Guimaraes 2f80336681
Rename friends-secure to friends and remove Mongo
Replace MongoDB usage with GRPC calls to the account server. Also
include documentation on the README and a Makefile.
2023-08-13 01:05:08 +01:00

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
}