Skip to content

Commit

Permalink
Add subscriptionId to searchableExpression (#557)
Browse files Browse the repository at this point in the history
Co-authored-by: YING WANG <42584020+yingwang-us@users.noreply.github.com>
  • Loading branch information
harkotha2 and yingwang-us authored Aug 7, 2020
1 parent 5518b87 commit b68ede9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/routes/v2/clusters.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const updateClusterResources = async (req, res, next) => {
const remoteResource = await Resources.findOne(rrSearchKey);
if(remoteResource) {
searchableDataObj['subscription_id'] = remoteResource.searchableData['annotations["deploy_razee_io_clustersubscription"]'];
searchableDataObj['searchableExpression'] = searchableDataObj['searchableExpression'] + ':' + searchableDataObj['subscription_id'];
}
const searchableDataHash = buildSearchableDataObjHash(searchableDataObj);

Expand Down

0 comments on commit b68ede9

Please sign in to comment.