test persistent storage
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit

This commit is contained in:
2025-10-13 12:44:48 +02:00
parent 0ec9692db3
commit 76c2e26e8c
3 changed files with 7 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
import Database from 'better-sqlite3';
import fs from 'fs';
import path from 'path';
import { DB_FULLPATH } from '../routes';
const fullPath = './src/lib/data/tatort.db';
const fullPath = DB_FULLPATH;
const dir = path.dirname(fullPath);
if (!fs.existsSync(dir)) {

View File

@@ -1,8 +1,9 @@
import Database from 'better-sqlite3';
import fs from 'fs';
import path from 'path';
import { DB_FULLPATH } from '../../routes';
const fullPath = './src/lib/data/tatort.db';
const fullPath = DB_FULLPATH;
const dir = path.dirname(fullPath);
if (!fs.existsSync(dir)) {

View File

@@ -36,3 +36,6 @@ export const API_ROUTES = {
USERS: '/api/users',
USER: (userId: string) => `/api/users/${userId}`
};
// './src/lib/data/tatort.db'
export const DB_FULLPATH = '/daten/tatort.db'