From e991337beea6b03d41c775fb47e967333660ace6 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 28 Feb 2024 00:09:04 -0500 Subject: [PATCH] minior fix --- include/data_structs.h | 1 + libs/blt | 2 +- src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/data_structs.h b/include/data_structs.h index e8dfcfd..53ee5df 100644 --- a/include/data_structs.h +++ b/include/data_structs.h @@ -145,6 +145,7 @@ namespace db auto make_message_table() { + using namespace sqlite_orm; return make_table("messages", make_column("messageID", &message_t::messageID, primary_key()), make_column("channelID", &message_t::channelID), diff --git a/libs/blt b/libs/blt index 9b4d0cc..9ad6521 160000 --- a/libs/blt +++ b/libs/blt @@ -1 +1 @@ -Subproject commit 9b4d0cc9a8493c608ab0075ab2c6a2b66061f3be +Subproject commit 9ad652195b0a69f9977d313eff4dd01a7890f1df diff --git a/src/main.cpp b/src/main.cpp index 7a7542b..ab1fc76 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,7 @@ struct db_obj std::queue user_load_queue; std::mutex user_load_queue_mutex; database_type db; - std::thread* thread; + std::thread* thread = nullptr; public: explicit db_obj(blt::u64 guildID, const std::string& path): guildID(guildID), db(make_database(path + "/" + std::to_string(guildID) + "/"))