fix(admin): repair email rollback and product taxonomy APIs

Call the existing Email_Rollback::list_pending method instead of the missing
list_recent_changes method that caused /email-rollback/users to fatal. Add
the product taxonomy route expected by ProductEditorDrawer and return
category/tag options for the editor.
This commit is contained in:
2026-07-11 12:20:33 +08:00
parent 4612e90e44
commit 7c56afa376
3 changed files with 38 additions and 1 deletions
@@ -261,7 +261,7 @@ class AKSRT_Admin_Tools_Controller extends AKSRT_Admin_Controller_Base {
$page = max(1, (int) $request->get_param('page'));
$per_page = min(100, max(1, (int) $request->get_param('per_page')));
$data = AKSRT_Email_Rollback::list_recent_changes($page, $per_page);
$data = AKSRT_Email_Rollback::list_pending($page, $per_page);
return $this->success(['data' => $data]);
}