minior fix

main
Brett 2024-02-28 00:09:04 -05:00
parent 853c58a853
commit e991337bee
3 changed files with 3 additions and 2 deletions

View File

@ -145,6 +145,7 @@ namespace db
auto make_message_table() auto make_message_table()
{ {
using namespace sqlite_orm;
return make_table("messages", return make_table("messages",
make_column("messageID", &message_t::messageID, primary_key()), make_column("messageID", &message_t::messageID, primary_key()),
make_column("channelID", &message_t::channelID), make_column("channelID", &message_t::channelID),

@ -1 +1 @@
Subproject commit 9b4d0cc9a8493c608ab0075ab2c6a2b66061f3be Subproject commit 9ad652195b0a69f9977d313eff4dd01a7890f1df

View File

@ -27,7 +27,7 @@ struct db_obj
std::queue<blt::u64> user_load_queue; std::queue<blt::u64> user_load_queue;
std::mutex user_load_queue_mutex; std::mutex user_load_queue_mutex;
database_type db; database_type db;
std::thread* thread; std::thread* thread = nullptr;
public: public:
explicit db_obj(blt::u64 guildID, const std::string& path): guildID(guildID), db(make_database(path + "/" + std::to_string(guildID) + "/")) explicit db_obj(blt::u64 guildID, const std::string& path): guildID(guildID), db(make_database(path + "/" + std::to_string(guildID) + "/"))