Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.connector
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONNECTOR_VERSION=6.28.2
CONNECTOR_VERSION=6.29.0
66 changes: 33 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"mustache": "^4.2.0",
"pdf-lib": "1.17.1",
"qrcode": "1.5.4",
"zod": "^3.25.28",
"zod": "^3.25.49",
"zod-validation-error": "^3.4.1"
},
"devDependencies": {
"@js-soft/docdb-access-mongo": "^1.2.0",
"@js-soft/eslint-config-ts": "^1.6.14",
"@js-soft/license-check": "^1.0.9",
"@js-soft/ts-utils": "^2.3.3",
"@nmshd/connector-types": "^6.28.2",
"@nmshd/connector-types": "^6.29.0",
"@nmshd/typescript-rest": "^3.1.4",
"@types/express": "^5.0.2",
"@types/luxon": "^3.6.2",
Expand Down
7 changes: 5 additions & 2 deletions src/StudentsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export class StudentsController {
const relationship = await this.services.transportServices.relationships.getRelationship({ id: student.correspondingRelationshipId.toString() });

const title = await this.fillTemplateStringWithStudentAndOrganizationData(student, data.title);
const file = await this.services.transportServices.files.uploadOwnFile({
const uploadFileResponse = await this.services.transportServices.files.uploadOwnFile({
content: Buffer.from(data.file, "base64"),
tags: data.tags,
filename: data.filename,
Expand All @@ -552,6 +552,8 @@ export class StudentsController {
const subject = data.messageSubject ? await this.fillTemplateStringWithStudentAndOrganizationData(student, data.messageSubject) : title;
const body = data.messageBody ? await this.fillTemplateStringWithStudentAndOrganizationData(student, data.messageBody) : undefined;

const file = uploadFileResponse.value;

const request = await this.services.consumptionServices.outgoingRequests.create({
content: {
title: subject,
Expand All @@ -560,7 +562,8 @@ export class StudentsController {
{
"@type": "TransferFileOwnershipRequestItem",
mustBeAccepted: true,
fileReference: file.value.reference.truncated
fileReference: file.reference.truncated,
ownershipToken: file.ownershipToken
}
]
},
Expand Down