Skip to content

Commit

Permalink
Add support for user_id and dep_id
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Dec 13, 2021
1 parent 360c7ee commit a2ef376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lhc_web/modules/lhrestapi/surveychat.php
Expand Up @@ -30,6 +30,7 @@
$presentSurvey->chat_id = $chat->id;
$presentSurvey->survey_id = $survey->id;
$presentSurvey->dep_id = $chat->dep_id;
$presentSurvey->user_id = $chat->user_id;
$presentSurvey->ftime = time();
}

Expand All @@ -45,7 +46,7 @@
}

foreach ($requestBody as $attr => $value) {
if (in_array($attr,['ftime','status'])) {
if (in_array($attr,['ftime','status','user_id','dep_id'])) {
$presentSurvey->{$attr} = $value;
}
}
Expand Down

0 comments on commit a2ef376

Please sign in to comment.