Skip to content

Commit

Permalink
Merge pull request #1285 from ianbush/add-mongodb-index-to-attachments
Browse files Browse the repository at this point in the history
Add MongoDB index to dataset property in attachments
  • Loading branch information
nitrosx authored Jun 26, 2024
2 parents 255ee9e + ee89a96 commit 36ce449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attachments/schemas/attachment.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Attachment extends OwnableClass {
caption: string;

@ApiProperty({ type: String, required: false })
@Prop({ type: String, ref: "Dataset", required: false })
@Prop({ type: String, ref: "Dataset", index: true, required: false })
datasetId: string;

@ApiProperty({ type: String, required: false })
Expand Down

0 comments on commit 36ce449

Please sign in to comment.