diff --git a/bundestag.io/api/src/graphql/resolvers/Procedure.ts b/bundestag.io/api/src/graphql/resolvers/Procedure.ts index 927cc27ac..010d443b8 100644 --- a/bundestag.io/api/src/graphql/resolvers/Procedure.ts +++ b/bundestag.io/api/src/graphql/resolvers/Procedure.ts @@ -328,6 +328,7 @@ const ProcedureResolvers: Resolvers = { } const plenaryMinute = await PlenaryMinuteModel.findOne({ meeting: parseInt(session.session), + period: procedure.period, }); console.log('plenaryMinute', plenaryMinute); diff --git a/common/bundestagio/src/models/PlenaryMinute/schema.ts b/common/bundestagio/src/models/PlenaryMinute/schema.ts index 15d6f780f..d7fb80c6d 100644 --- a/common/bundestagio/src/models/PlenaryMinute/schema.ts +++ b/common/bundestagio/src/models/PlenaryMinute/schema.ts @@ -11,7 +11,7 @@ export type PlenaryMinuteDoc = IPlenaryMinute & Document & SchemaTimestampsConfi const PlenaryMinuteSchema = new Schema( { - date: { type: Date, required: true, unique: true }, + date: { type: Date, required: true, unique: false }, meeting: { type: Number, required: true, unique: false }, period: { type: Number, required: true, unique: false }, xml: { type: String, required: true, unique: true },