[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -301,8 +301,8 @@ public:
auto results = db.QueryDatabase(
fmt::format(
"{} WHERE {} = {} LIMIT 1",
PrimaryKey(),
BaseSelect(),
PrimaryKey(),
bot_data_id
)
);

View File

@ -105,8 +105,8 @@ public:
auto results = db.QueryDatabase(
fmt::format(
"{} WHERE {} = {} LIMIT 1",
PrimaryKey(),
BaseSelect(),
PrimaryKey(),
{{TABLE_NAME_VAR}}_id
)
);