From baf827df2950a84b150ba0b0b57a289ddd28be43 Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 11 Aug 2026 16:33:22 +0200 Subject: [PATCH] fix(auth): set supplementalVideoIds on first-login channel creation upsertGoogleUser's nested channels.create (the auto-provisioning path for a brand new team's first Google login) never set supplementalVideoIds, a required String[] column with no DB default (dropped intentionally in 20260608000002 to match the Prisma schema). channel-import.service.ts already sets it explicitly on its create path - this path was just missed, and nothing had exercised a real first login against Postgres until now. --- backend/src/modules/auth/auth.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/modules/auth/auth.service.ts b/backend/src/modules/auth/auth.service.ts index 21a0c7b..c673500 100644 --- a/backend/src/modules/auth/auth.service.ts +++ b/backend/src/modules/auth/auth.service.ts @@ -67,6 +67,7 @@ export class AuthService { youtubeChannelId, name: channelName, uploadsPlaylistId, + supplementalVideoIds: [], youtubeAccessToken: this.encrypt(accessToken), youtubeRefreshToken: refreshToken ? this.encrypt(refreshToken) : undefined, youtubeTokenExpiry: new Date(Date.now() + 3600 * 1000),