Skip to content

Commit

Permalink
Supply connection name to mongoose that matches collection created in…
Browse files Browse the repository at this point in the history
… migration #2670
  • Loading branch information
iamleeg committed May 5, 2022
1 parent 6a0b309 commit 155a3d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data-serving/data-service/src/model/age-bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const ageBucketSchema = new mongoose.Schema({
export type AgeBucketDocument = mongoose.Document & Range<number>;

export const AgeBucket = mongoose.model<AgeBucketDocument>(
'AgeBuckets',
'AgeBucket',
ageBucketSchema,
'ageBuckets'
);

0 comments on commit 155a3d8

Please sign in to comment.