Skip to content

Commit

Permalink
Merge pull request #14 from isd-sgcu/dev
Browse files Browse the repository at this point in the history
update main
  • Loading branch information
bookpanda authored Jul 16, 2024
2 parents 54ecd09 + 6d32076 commit 72b21f4
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 72b21f4

Please sign in to comment.