test persistent storage
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import Database from 'better-sqlite3';
|
import Database from 'better-sqlite3';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
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);
|
const dir = path.dirname(fullPath);
|
||||||
|
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import Database from 'better-sqlite3';
|
import Database from 'better-sqlite3';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
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);
|
const dir = path.dirname(fullPath);
|
||||||
|
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
|
|||||||
@@ -36,3 +36,6 @@ export const API_ROUTES = {
|
|||||||
USERS: '/api/users',
|
USERS: '/api/users',
|
||||||
USER: (userId: string) => `/api/users/${userId}`
|
USER: (userId: string) => `/api/users/${userId}`
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// './src/lib/data/tatort.db'
|
||||||
|
export const DB_FULLPATH = '/daten/tatort.db'
|
||||||
|
|||||||
Reference in New Issue
Block a user