From 849061ffb4eb658753bb41edf75be6e4cf9a8acb Mon Sep 17 00:00:00 2001 From: Marko Jovanovic Date: Thu, 16 Oct 2025 15:35:19 +0200 Subject: [PATCH] Submit generated study_id to Umfragetool backend --- src/Command/CleanMobileCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/CleanMobileCommand.php b/src/Command/CleanMobileCommand.php index 7fcfe05..3b5ec8d 100644 --- a/src/Command/CleanMobileCommand.php +++ b/src/Command/CleanMobileCommand.php @@ -192,6 +192,7 @@ final class CleanMobileCommand extends Command if ($row['HANDY_E164']) { $uuid = Uuid::v4(); $study_id = "QMBEFR-" . $uuid->toString(); + $study_id_chain = "QMBEFR-SPENDE-" . $uuid->toString(); // Create a Contact entity for DB insertion $contact = new Contacts(); @@ -206,7 +207,7 @@ final class CleanMobileCommand extends Command $contact->setParsedFileLine(implode(';', $row)); try { - $this->http->request('POST', $this->backendApiURL . "/" . $study_id, [ + $this->http->request('POST', $this->backendApiURL . "/" . $study_id . "/" . $study_id_chain, [ 'body' => '', 'headers' => [], ]);