mirror of
https://github.com/immich-app/immich.git
synced 2025-01-26 17:21:29 +02:00
chore(server): use fs to read package.json (#6692)
use fs readsync instead of js import for reading package json
This commit is contained in:
parent
9422359b51
commit
e9333837bf
@ -1,7 +1,9 @@
|
||||
import { AssetType } from '@app/infra/entities';
|
||||
import { Duration } from 'luxon';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { extname, join } from 'node:path';
|
||||
import pkg from 'src/../../package.json';
|
||||
|
||||
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
|
||||
|
||||
export const AUDIT_LOG_MAX_DURATION = Duration.fromObject({ days: 100 });
|
||||
export const ONE_HOUR = Duration.fromObject({ hours: 1 });
|
||||
|
Loading…
x
Reference in New Issue
Block a user