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 Oct 22, 2023
1 parent 2141270 commit 6af6f5b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bundestag.io/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@democracy-deutschland/bundestag.io-definitions": "1.0.2",
"@democracy-deutschland/bundestagio-common": "0.1.20",
"@democracy-deutschland/bundestagio-common": "0.1.21",
"apollo-server-express": "^2.3.3",
"axios": "^0.24.0",
"body-parser": "^1.18.3",
Expand Down
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
9 changes: 5 additions & 4 deletions bundestag.io/api/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -652,17 +652,18 @@
dependencies:
typescript "^3.7.2"

"@democracy-deutschland/[email protected].20":
version "0.1.20"
resolved "https://registry.yarnpkg.com/@democracy-deutschland/bundestagio-common/-/bundestagio-common-0.1.20.tgz#32f921d6a93a5192c74138ed73777f71eaf2ec52"
integrity sha512-PZEXAXtp2sWyki1mm2RRoF4hpl1u6ob8IoAljTaY4bAnBS8mP565bj+ZbFjlJzEI94LZBAqU0t1F69TTOjkPLQ==
"@democracy-deutschland/[email protected].21":
version "0.1.21"
resolved "https://registry.yarnpkg.com/@democracy-deutschland/bundestagio-common/-/bundestagio-common-0.1.21.tgz#0f3abfff22bf428c04603c0a142cc90b9bc0a326"
integrity sha512-J7TEznNnVAhgHfMbEeCbh8DS20jScBZ2jxAqxxVC04bUnaNPy/WHevkiXihHnLnmFsvyrjo31O8eOmnhNiTVDg==
dependencies:
"@democracy-deutschland/bundestag.io-definitions" "^1.0.2"
"@types/cron" "^1.7.2"
cron "^1.8.2"
jsonwebtoken "^8.5.1"
mongoosastic "^4.6.0"
mongoose "^6.0.12"
mongoose-diff-history mimani/mongoose-diff-history#master
omit-deep "^0.3.0"
ts-mongoose "^0.0.24"

Expand Down
2 changes: 1 addition & 1 deletion common/bundestagio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@democracy-deutschland/bundestagio-common",
"version": "0.1.21",
"version": "0.1.22-alpha.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
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 6af6f5b

Please sign in to comment.