feat: put db and uploads in same folder

This commit is contained in:
Elias Schneider
2022-10-12 00:38:38 +02:00
parent 759db40ac9
commit 80cdcda93c
9 changed files with 15 additions and 19 deletions

View File

@@ -57,7 +57,7 @@ export class ShareService {
}
async createZip(shareId: string) {
const path = `./uploads/shares/${shareId}`;
const path = `./data/uploads/shares/${shareId}`;
const files = await this.prisma.file.findMany({ where: { shareId } });
const archive = archiver("zip", {