Submit generated study_id to Umfragetool backend
This commit is contained in:
parent
7c5928ccb6
commit
849061ffb4
|
|
@ -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' => [],
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user