updated database and database_type in config file
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 2s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 2s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 2s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Failing after 1s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Failing after 2s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Failing after 2s

This commit is contained in:
tola committed 2025-10-30 22:23:51 +07:00
1 parent 4c930e3b82
commit 648e92d2fa
18 files changed
+185 -71

No files matched your search

+5 -2
View File
@@ -1,10 +1,13 @@
#include <pthread.h>
#include "utils/file.h"
#include "config/config.h"
#include "filedb.h"
#include "utils/file.h"
char *filedb_get_all_users() {
pthread_mutex_lock(&users_file_mutex);
char *data = read_file("users_db.json");
char *database_file = cm_get_parameter_as_string(config, "database");
char *data = read_file(database_file);
free(database_file);
pthread_mutex_unlock(&users_file_mutex);
return data;
}