[Hot Fix] Fix Bot Data Repository (#2618)

* [Hot Fix] Fix Bot Data Repository

Query was in wrong order.

* Update base_repository.template
This commit is contained in:
Alex King
2022-12-04 22:35:17 -05:00
committed by GitHub
parent 423e6ae751
commit a9c161011e
2 changed files with 2 additions and 2 deletions
@@ -301,8 +301,8 @@ public:
auto results = db.QueryDatabase(
fmt::format(
"{} WHERE {} = {} LIMIT 1",
PrimaryKey(),
BaseSelect(),
PrimaryKey(),
bot_data_id
)
);
@@ -105,8 +105,8 @@ public:
auto results = db.QueryDatabase(
fmt::format(
"{} WHERE {} = {} LIMIT 1",
PrimaryKey(),
BaseSelect(),
PrimaryKey(),
{{TABLE_NAME_VAR}}_id
)
);