Skip to content

Commit

Permalink
Merge pull request #2175 from DuckySoLucky/featImplementIndexingToMuseum
Browse files Browse the repository at this point in the history
feat: add indexing to musem and init
  • Loading branch information
Shiiyu authored Jan 22, 2024
2 parents dcb4d28 + 2aa9630 commit fc02c4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/init-collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ await Promise.all([

db.collection("guildCache").createIndex({ uuid: 1 }, { unique: true }),
db.collection("guildCache").createIndex({ last_update: 1 }, { expireAfterSeconds: 1209600 }),

db.collection("museumCache").createIndex({ profile_id: 1 }, { unique: true }),
db.collection("museumCache").createIndex({ last_update: 1 }, { expireAfterSeconds: 1209600 }),
]);

0 comments on commit fc02c4e

Please sign in to comment.