Skip to content

Commit

Permalink
Add missing index on user.discordUserId on user feed entity
Browse files Browse the repository at this point in the history
  • Loading branch information
synzen committed Feb 15, 2025
1 parent f6e0406 commit 3b3f83f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ UserFeedSchema.index({
refreshRateSeconds: 1,
});

// For looking up feeds with specific URLs when refreshing user external credentials
UserFeedSchema.index({
"user.discordUserId": 1,
});

export const UserFeedFeature: ModelDefinition = {
name: UserFeed.name,
schema: UserFeedSchema,
Expand Down

0 comments on commit 3b3f83f

Please sign in to comment.