Skip to content

Commit

Permalink
feature: Add a clearer name for the new mongo query
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-spierefka committed Apr 18, 2024
1 parent 9ec9733 commit 6ddcf87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public interface MessageStateMongoRepo extends MongoRepository<MessageStateMongo
Slice<MessageStateMongoDocument> findByStatusInPlusCallbackUrlNotFoundExceptionAsc(List<Status> status, List<String> subscriptionIds, Date timestampOlderThan, Pageable pageable);

@Query(value = "{$or:[{\"status\":{ $eq: \"WAITING\"}},{\"error.type\":\"de.telekom.horizon.dude.exception.CallbackUrlNotFoundException\"}], status:{ $in: ?0 }, subscriptionId:{ $in: ?1 }, modified: { $lte: ?2 }}", sort = "{timestamp: 1}")
Slice<MessageStateMongoDocument> findByStatusWaitingOrFailedWithCallbackExceptionAndSubscriptionIdsAndTimestampLessThanEqual(List<Status> status, List<String> subscriptionIds, Date upperTimestampThreshold, Pageable pageable);
Slice<MessageStateMongoDocument> findByStatusWaitingOrWithCallbackExceptionAndSubscriptionIdsAndTimestampLessThanEqual(List<Status> status, List<String> subscriptionIds, Date upperTimestampThreshold, Pageable pageable);

List<MessageStateMongoDocument> findByMultiplexedFrom(String multiplexedFromId);

Expand Down

0 comments on commit 6ddcf87

Please sign in to comment.