Skip to content

Commit

Permalink
Merge pull request #13 from isd-sgcu/checkin-upsert
Browse files Browse the repository at this point in the history
fix: can checkin multiples
  • Loading branch information
bookpanda authored Jul 16, 2024
2 parents b3286b3 + b929263 commit 6d32076
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 6d32076

Please sign in to comment.