Submit generated study_id to Umfragetool backend

This commit is contained in:
Marko Jovanovic 2025-10-16 15:35:19 +02:00
parent 7c5928ccb6
commit 849061ffb4

View File

@ -192,6 +192,7 @@ final class CleanMobileCommand extends Command
if ($row['HANDY_E164']) { if ($row['HANDY_E164']) {
$uuid = Uuid::v4(); $uuid = Uuid::v4();
$study_id = "QMBEFR-" . $uuid->toString(); $study_id = "QMBEFR-" . $uuid->toString();
$study_id_chain = "QMBEFR-SPENDE-" . $uuid->toString();
// Create a Contact entity for DB insertion // Create a Contact entity for DB insertion
$contact = new Contacts(); $contact = new Contacts();
@ -206,7 +207,7 @@ final class CleanMobileCommand extends Command
$contact->setParsedFileLine(implode(';', $row)); $contact->setParsedFileLine(implode(';', $row));
try { try {
$this->http->request('POST', $this->backendApiURL . "/" . $study_id, [ $this->http->request('POST', $this->backendApiURL . "/" . $study_id . "/" . $study_id_chain, [
'body' => '', 'body' => '',
'headers' => [], 'headers' => [],
]); ]);