Skip to content

Commit

Permalink
fix resolver for voteResultTextHelper
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Nov 1, 2023
1 parent 4d26476 commit 652a6f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bundestag.io/api/src/graphql/resolvers/Procedure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ const ProcedureResolvers: Resolvers = {
}
const plenaryMinute = await PlenaryMinuteModel.findOne({
meeting: parseInt(session.session),
period: procedure.period,
});

console.log('plenaryMinute', plenaryMinute);
Expand Down
2 changes: 1 addition & 1 deletion common/bundestagio/src/models/PlenaryMinute/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type PlenaryMinuteDoc = IPlenaryMinute & Document & SchemaTimestampsConfi

const PlenaryMinuteSchema = new Schema<PlenaryMinuteDoc>(
{
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 },
Expand Down

0 comments on commit 652a6f0

Please sign in to comment.