mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Bots] Convert Load, Save, SaveNew, and Delete to Repositories. (#2614)
* [Bots] Convert Load, Save, SaveNew, and Delete to Repositories. # Notes - General code cleanup, as manually adding to these queries doesn't scale very well. * FindOne. * Update base_bot_data_repository.h * Update template.
This commit is contained in:
@@ -300,7 +300,8 @@ public:
|
||||
{
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
"{} WHERE id = {} LIMIT 1",
|
||||
"{} WHERE {} = {} LIMIT 1",
|
||||
PrimaryKey(),
|
||||
BaseSelect(),
|
||||
bot_data_id
|
||||
)
|
||||
|
||||
@@ -104,7 +104,8 @@ public:
|
||||
{
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
"{} WHERE id = {} LIMIT 1",
|
||||
"{} WHERE {} = {} LIMIT 1",
|
||||
PrimaryKey(),
|
||||
BaseSelect(),
|
||||
{{TABLE_NAME_VAR}}_id
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user