v0.1.10 - In the middle of working on getting admin api working
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
#include <time.h>
|
||||
#include "ginxsom.h"
|
||||
|
||||
// Database path (should match main.c)
|
||||
#define DB_PATH "db/ginxsom.db"
|
||||
// Use global database path from main.c
|
||||
extern char g_db_path[];
|
||||
|
||||
// Forward declarations for helper functions
|
||||
void send_error_response(int status_code, const char* error_type, const char* message, const char* details);
|
||||
@@ -154,7 +154,7 @@ int store_blob_report(const char* event_json, const char* reporter_pubkey) {
|
||||
sqlite3_stmt* stmt;
|
||||
int rc;
|
||||
|
||||
rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READWRITE, NULL);
|
||||
rc = sqlite3_open_v2(g_db_path, &db, SQLITE_OPEN_READWRITE, NULL);
|
||||
if (rc) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user