Fixed db path

master
0x1a8510f2 2 years ago
parent 7b531a2aad
commit dad064f3a3
Signed by: 0x1a8510f2
GPG Key ID: F5DE8E33A2723FF6
  1. 2
      server/api.php

@ -4,7 +4,7 @@
// have an access code defined on login
// Instantly lock the database file to stop weird errors like the file contents disappearing
$database = fopen(dirname(__FILE__)."/db.json", "r+");
$database = fopen(dirname(__FILE__)."/assets/db.json", "r+");
$flock_block = 1;
flock($database, LOCK_EX, $flock_block);

Loading…
Cancel
Save