Skip to content

Commit

Permalink
small spelling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VjeraTurk committed Nov 13, 2024
1 parent 6270de7 commit 978f208
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func (*ValidationServiceV1Server) Validation(ctx context.Context, validationRequ
searchId := validationRequest.ValidationObject.SearchIdentifier.SearchId
resultId := validationRequest.ValidationObject.SearchIdentifier.ResultId
validationCache := cache.NewValidationCache()
accomodationCache := cache.NewSearchCache()
accommodationCache := cache.NewSearchCache()

accommodationSearchResponse, ok := accomodationCache.GetV1(searchId.String()) // Directly access using searchId and resultId
accommodationSearchResponse, ok := accommodationCache.GetV1(searchId.String()) // Directly access using searchId and resultId
if !ok {
return nil, fmt.Errorf("no validation data found for searchId: %s", searchId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func (*ValidationServiceV2Server) Validation(ctx context.Context, validationRequ
searchId := validationRequest.ValidationObject.SearchIdentifier.SearchId
resultId := validationRequest.ValidationObject.SearchIdentifier.ResultId

accomodationCache := cache.NewSearchCache()
accommodationCache := cache.NewSearchCache()
validationCache := cache.NewValidationCache()
accommodationSearchResponse, found := accomodationCache.GetV2(searchId.Value) // Directly access using searchId and resultId
accommodationSearchResponse, found := accommodationCache.GetV2(searchId.Value) // Directly access using searchId and resultId
if !found {
return nil, fmt.Errorf("no validation data found for searchId: %s", searchId)
}
Expand Down

0 comments on commit 978f208

Please sign in to comment.