diff --git a/bundestag.io/api/package.json b/bundestag.io/api/package.json index 527e02d19..5d9e22e30 100644 --- a/bundestag.io/api/package.json +++ b/bundestag.io/api/package.json @@ -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", 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/bundestag.io/api/yarn.lock b/bundestag.io/api/yarn.lock index 582204a0d..c78dbfe62 100644 --- a/bundestag.io/api/yarn.lock +++ b/bundestag.io/api/yarn.lock @@ -652,10 +652,10 @@ dependencies: typescript "^3.7.2" -"@democracy-deutschland/bundestagio-common@0.1.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/bundestagio-common@0.1.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" @@ -663,6 +663,7 @@ 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" diff --git a/common/bundestagio/package.json b/common/bundestagio/package.json index 9d4a132a8..d30d9778e 100644 --- a/common/bundestagio/package.json +++ b/common/bundestagio/package.json @@ -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", 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 },