mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 16:31:29 +00:00
[Fix] Bugs table should not target content database (#3535)
This commit is contained in:
parent
714b474d2c
commit
6a7eaae122
@ -41,7 +41,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||||
|
|
||||||
auto r = BugReportsRepository::FindOne(content_db, bug_id);
|
auto r = BugReportsRepository::FindOne(database, bug_id);
|
||||||
if (!r.id) {
|
if (!r.id) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
@ -55,7 +55,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
r.bug_status = 1;
|
r.bug_status = 1;
|
||||||
|
|
||||||
if (!BugReportsRepository::UpdateOne(content_db, r)) {
|
if (!BugReportsRepository::UpdateOne(database, r)) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
@ -81,7 +81,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||||
auto deleted_count = BugReportsRepository::DeleteOne(content_db, bug_id);
|
auto deleted_count = BugReportsRepository::DeleteOne(database, bug_id);
|
||||||
if (!deleted_count) {
|
if (!deleted_count) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
@ -112,7 +112,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||||
auto bug_review = sep->argplus[3];
|
auto bug_review = sep->argplus[3];
|
||||||
|
|
||||||
auto r = BugReportsRepository::FindOne(content_db, bug_id);
|
auto r = BugReportsRepository::FindOne(database, bug_id);
|
||||||
if (!r.id) {
|
if (!r.id) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
@ -128,7 +128,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
r.last_reviewer = c->GetCleanName();
|
r.last_reviewer = c->GetCleanName();
|
||||||
r.reviewer_notes = bug_review;
|
r.reviewer_notes = bug_review;
|
||||||
|
|
||||||
if (!BugReportsRepository::UpdateOne(content_db, r)) {
|
if (!BugReportsRepository::UpdateOne(database, r)) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
@ -154,7 +154,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
auto search_criteria = sep->argplus[2];
|
auto search_criteria = sep->argplus[2];
|
||||||
auto l = BugReportsRepository::GetWhere(
|
auto l = BugReportsRepository::GetWhere(
|
||||||
content_db,
|
database,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"bug_status = 0 AND (character_name LIKE '%%{}%%' OR bug_report LIKE '%%{}%%')",
|
"bug_status = 0 AND (character_name LIKE '%%{}%%' OR bug_report LIKE '%%{}%%')",
|
||||||
Strings::Escape(search_criteria),
|
Strings::Escape(search_criteria),
|
||||||
@ -205,7 +205,7 @@ void command_bugs(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
auto bug_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||||
|
|
||||||
auto r = BugReportsRepository::FindOne(content_db, bug_id);
|
auto r = BugReportsRepository::FindOne(database, bug_id);
|
||||||
if (!r.id) {
|
if (!r.id) {
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::White,
|
Chat::White,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user