mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
632 B
C++
19 lines
632 B
C++
#include "MySQLDatabase.h"
|
|
|
|
void MySQLDatabase::InsertNewBugReport(const IBugReports::Info& info) {
|
|
ExecuteInsert("INSERT INTO `bug_reports`(body, client_version, other_player_id, selection, reporter_id) VALUES (?, ?, ?, ?, ?)",
|
|
info.body, info.clientVersion, info.otherPlayer, info.selection, info.characterId);
|
|
}
|
|
|
|
#include "json.hpp"
|
|
|
|
void MySQLDatabase::DeleteBugReport(const uint32_t id) {
|
|
ExecuteUpdate("DELETE FROM bug_reports WHERE id = ?;", id);
|
|
}
|
|
|
|
uint32_t MySQLDatabase::GetBugReportCount() {
|
|
auto res = ExecuteSelect("SELECT COUNT(*) as count FROM bug_reports;");
|
|
return res->next() ? res->getUInt("count") : 0;
|
|
}
|
|
|