Skip to content

Commit

Permalink
fix: filtered global subscription not working
Browse files Browse the repository at this point in the history
- missing `false` for `pushSuffixValue` of `convertAllQueryToDicomTag` method for SQL
- remove invalid `this` of queryOptions
  • Loading branch information
Chinlinlee committed Dec 2, 2023
1 parent adbc757 commit 1336ba7
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ class SqlBaseWorkItemService extends BaseWorkItemService {
if (!globalSubscription.queryKeys) {
hitGlobalSubscriptions.push(globalSubscription);
} else {
//TODO: ups global query builder
let query = convertAllQueryToDicomTag(globalSubscription.queryKeys);
let query = convertAllQueryToDicomTag(globalSubscription.queryKeys, false);
_.set(query, "upsInstanceUID", workItem.dicomJson.upsInstanceUID);
let queryOptions = {
query: this.query,
requestParams: this.request.params
query: query
};
let upsQueryBuilder = new UpsQueryBuilder(queryOptions);
let dbQuery = upsQueryBuilder.build();
Expand Down

0 comments on commit 1336ba7

Please sign in to comment.