Skip to content

Commit 4f5dde2

Browse files
authored
Merge pull request #896 from razee-io/indexSubscriptions
Create an index of resources by subscription_id
2 parents d148f2c + ce6319f commit 4f5dde2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/routes/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ async function initialize(){
206206
keys: { org_id: 1, cluster_id: 1, selfLink: 1, 'searchableData.subscription_id': 1, deleted: 1 },
207207
options: { name: 'org_id.cluster_id.subid.deleted', }
208208
},
209+
{
210+
keys: { 'searchableData.subscription_id': 1},
211+
options: { name: 'searchableData.subscription_id', }
212+
},
209213
{
210214
keys: { org_id: 1, cluster_id: 1, 'searchableData.kind': 1, 'searchableData.children': 1, deleted: 1 },
211215
options: { name: 'org_id.cluster_id.subid.kind.children', }

0 commit comments

Comments
 (0)