restructure directories

* set log level based on env
This commit is contained in:
Philipinho
2024-06-09 15:57:52 +01:00
parent 2e61fb7c11
commit d4eefa48a8
49 changed files with 124 additions and 82 deletions

View File

@ -10,7 +10,7 @@ import {
import { streamToBuffer } from '../storage.utils';
import { Readable } from 'stream';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import { getMimeType } from '../../../helpers';
import { getMimeType } from '../../../common/helpers';
export class S3Driver implements StorageDriver {
private readonly s3Client: S3Client;

View File

@ -12,7 +12,7 @@ import {
} from '../interfaces';
import { LocalDriver, S3Driver } from '../drivers';
import * as process from 'node:process';
import { LOCAL_STORAGE_PATH } from '../../../helpers';
import { LOCAL_STORAGE_PATH } from '../../../common/helpers';
function createStorageDriver(disk: StorageConfig): StorageDriver {
switch (disk.driver) {