mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
Consolidate queries
This commit is contained in:
parent
8291cd671e
commit
4155f9fe9c
5 changed files with 6 additions and 30 deletions
|
|
@ -433,7 +433,7 @@ class DocumentAdminController extends Document
|
|||
// We need to do this twice because of the unique constraint.
|
||||
foreach ($changes as $change)
|
||||
{
|
||||
$output = executeQuery('document.updateDocumentExtraKeyIdxByEid', [
|
||||
$output = executeQuery('document.updateDocumentExtraKeyIdx', [
|
||||
'module_srl' => $module_srl,
|
||||
'eid' => $change['eid'],
|
||||
'var_idx' => $change['old_idx'],
|
||||
|
|
@ -445,7 +445,7 @@ class DocumentAdminController extends Document
|
|||
return $output;
|
||||
}
|
||||
|
||||
$output = executeQuery('document.updateDocumentExtraVarIdxByEid', [
|
||||
$output = executeQuery('document.updateDocumentExtraVarIdx', [
|
||||
'module_srl' => $module_srl,
|
||||
'eid' => $change['eid'],
|
||||
'var_idx' => $change['old_idx'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue