Skip to content

Commit

Permalink
Fix mistaken in failure description in NMIS integration helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Feb 9, 2024
1 parent 86b3d3f commit 244565b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/integrations_nmis_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ function integrations_update($integration, $devices)
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($device));
$output = curl_exec($ch);
if (!is_string($output) || !strlen($output)) {
$sql = "INSERT INTO integrations_log VALUES (null, ?, null, ?, 'error', '[integrations_update] Could update device in NMIS.')";
$sql = "INSERT INTO integrations_log VALUES (null, ?, null, ?, 'error', '[integrations_update] Could not update device in NMIS.')";
$db->query($sql, [$integration->id, microtime(true)]);
curl_close($ch);
unlink($ckfile);
Expand Down

0 comments on commit 244565b

Please sign in to comment.