Skip to content
Snippets Groups Projects
Commit 5ede33b4 authored by Vinciane's avatar Vinciane
Browse files

FEAT #9749 Delete useless function

parent 8e542e8b
No related branches found
No related tags found
No related merge requests found
...@@ -720,26 +720,5 @@ class ResController ...@@ -720,26 +720,5 @@ class ResController
return $response->withJson(['isAllowed' => true]); return $response->withJson(['isAllowed' => true]);
} }
public function updateDestUser(Request $request, Response $response, array $aArgs)
{
$data = $request->getParams();
foreach ($data as $listInstance) {
$user = UserModel::getByLogin(['login' => $listInstance['redirectUserId']]);
if (empty($user)) {
return $response->withStatus(400)->withJson(['errors' => 'User not found']);
}
ListInstanceModel::update([
'set' => ['item_id' => $listInstance['redirectUserId']],
'where' => ['item_id = ?', 'res_id = ?', 'item_mode = ?', 'process_date IS NULL'],
'data' => [$aArgs['user_id'], $listInstance['res_id'], $listInstance['item_mode']]
]);
}
return $response->withJson(['success' => 'success']);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment