From 91f9bacaf66c214091f63a63e08b7068125c75a4 Mon Sep 17 00:00:00 2001 From: im-calvin Date: Wed, 1 Nov 2023 00:20:31 -0700 Subject: [PATCH] fix --- docker-compose.yml | 3 +++ src/utils/schedule.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 091df8e..6ca3239 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,3 +7,6 @@ services: - /home/kwong/mittens/data:/app/data environment: DOTENV_KEY: ${DOTENV_KEY} + PUID: 1001 + PGID: 1001 + UMASK: 022 diff --git a/src/utils/schedule.ts b/src/utils/schedule.ts index 4152ff6..08e04af 100644 --- a/src/utils/schedule.ts +++ b/src/utils/schedule.ts @@ -123,7 +123,7 @@ export async function scrape() { // TODO for egora: is there a better way of optimizing saves and fetches from the database than doing them manually like this (cascade option in save?) // if successful: // update the video_participants table - const participants = []; + const participants: VideoParticipant[] = []; if (video.mentions !== undefined) { for (const vid_streamer of video.mentions) { const db_streamer = await streamerRepo.findOneBy({