mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
The page held one-off repairs from Nexus Dashboard (approve known pet names, find/delete orphaned pet names, remove every buff, fix property clone IDs, list mission rewards without a commendation price). Removed the page, its sidebar entry, its /api/maintenance/* routes, the `maintenance` permission and the two database calls only it used (GetAllPetNames, FixPropertyCloneIds). The scheduled tasks (lift expired bans, fill in pet owners, approve known pet names) and property model import/removal stay. Check: the Admin sidebar group has no Maintenance link; /maintenance is a 404; the Tasks page still lists "Approve known pet names" and "Fill in pet owners"; property import still works; the Permissions page no longer lists "Data maintenance". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
917 B
C++
26 lines
917 B
C++
#ifndef __IDASHBOARDMAINTENANCE__H__
|
|
#define __IDASHBOARDMAINTENANCE__H__
|
|
|
|
#include <cstdint>
|
|
#include <functional>
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
// Bulk data reads and repairs for dashboard reports and scheduled tasks
|
|
class IDashboardMaintenance {
|
|
public:
|
|
// Approve pending pet names that an earlier pet with the same name was approved for. Returns rows changed.
|
|
virtual uint32_t ApprovePreviouslyApprovedPetNames() = 0;
|
|
|
|
// Call visit for every character's XML, one row at a time
|
|
virtual void ForEachCharacterXml(const std::function<void(LWOOBJID, const std::string&)>& visit) = 0;
|
|
|
|
// Same, but only characters whose XML contains `needle`; the database does the filtering
|
|
virtual void ForEachCharacterXmlContaining(const std::string& needle, const std::function<void(LWOOBJID, const std::string&)>& visit) = 0;
|
|
};
|
|
|
|
#endif //!__IDASHBOARDMAINTENANCE__H__
|