Skip to content

Commit

Permalink
questions: Corregir error en esquema de la BD
Browse files Browse the repository at this point in the history
  • Loading branch information
saulvaldelvira committed Mar 9, 2025
1 parent 5e7d483 commit 041b754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions questions/services/question-data-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface IQuestion extends Document {
wdUri: string;
image_url: string;
common_name: string;
taxon_name: string;
}

const questionSchema: Schema<IQuestion> = new Schema({
Expand All @@ -18,6 +19,7 @@ const questionSchema: Schema<IQuestion> = new Schema({
wdUri: { type: String, required: false },
image_url: { type: String, required: false },
common_name: { type: String, required: false },
taxon_name: { type: String, required: false },
}, { timestamps: true });

// Modelo de Mongoose
Expand Down

0 comments on commit 041b754

Please sign in to comment.