Skip to content

Commit

Permalink
add index to userId
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Nov 8, 2024
1 parent f702cb9 commit 484df5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/meteor/server/models/raw/BaseUploadModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type T = IUpload;
export abstract class BaseUploadModelRaw extends BaseRaw<T> implements IBaseUploadsModel<T> {
protected modelIndexes(): IndexDescription[] {
return [
{ key: { userId: 1 }, sparse: true },
{ key: { name: 1 }, sparse: true },
{ key: { rid: 1 }, sparse: true },
{ key: { expiresAt: 1 }, sparse: true },
Expand Down

0 comments on commit 484df5d

Please sign in to comment.