added unit tests
This commit is contained in:
@ -8,7 +8,7 @@ if ($method !== 'POST') {
|
||||
}
|
||||
|
||||
$dbPath = QDB_PATH;
|
||||
$backupDir = __DIR__ . '/../uploads/backups';
|
||||
$backupDir = QDB_UPLOADS_DIR . '/backups';
|
||||
|
||||
if (!file_exists($dbPath)) {
|
||||
json_error('NOT_FOUND', 'No database to back up', 404);
|
||||
|
||||
Reference in New Issue
Block a user