Skip to content

Commit

Permalink
fix: can checkin multiples
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 16, 2024
1 parent b3286b3 commit b929263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/checkin/checkin.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func (s *serviceImpl) Create(ctx context.Context, req *proto.CreateCheckInReques
if v.Event == req.Event && v.UserID == req.UserId {
s.log.Named("Create").Warn("Create: User already checkin this event")

return nil, status.Error(codes.AlreadyExists, constant.AlreadyCheckinErrorMessage)
return &proto.CreateCheckInResponse{
CheckIn: ModelToProto(v),
}, nil
}
}
// span.AddEvent("Verify user checkin not duplicate")
Expand Down

0 comments on commit b929263

Please sign in to comment.