Skip to content

Commit 87cd0ea

Browse files
committed
fix: adds index for tokenId
1 parent ad6c8f7 commit 87cd0ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/spacecat-shared-data-access/src/models/suggestion-grant/suggestion-grant.schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const schema = new SchemaBuilder(SuggestionGrant, SuggestionGrantCollection)
3030
type: 'string', required: false, postgrestIgnore: true,
3131
})
3232
.addIndex({ composite: ['suggestionId'] }, { composite: [] })
33+
.addIndex({ composite: ['tokenId'] }, { composite: [] })
3334
.addAttribute('suggestionId', {
3435
type: 'string',
3536
required: true,

0 commit comments

Comments
 (0)