revert updated api
This commit is contained in:
2026-05-22 12:27:12 +00:00
parent e0be2c501f
commit c86768e391
17 changed files with 41 additions and 867 deletions

View File

@ -1,7 +1,5 @@
<?php
require_once __DIR__ . '/../lib/activity.php';
$tokenRec = require_valid_token();
require_role(['admin', 'supervisor'], $tokenRec);
@ -91,17 +89,6 @@ case 'POST':
$count += $updStmt->rowCount();
}
$pdo->commit();
log_activity(
$pdo,
$tokenRec,
'clients_assigned',
'coach',
$coachID,
"Assigned $count client(s) to coach $coachID",
['clientCodes' => $clientCodes, 'count' => $count]
);
qdb_save($tmpDb, $lockFp);
json_success(['assigned' => $count]);