diff --git a/server/entity/User.ts b/server/entity/User.ts index e4c8314c3..c8753bfe9 100644 --- a/server/entity/User.ts +++ b/server/entity/User.ts @@ -83,13 +83,13 @@ export class User { @Column({ nullable: true }) public jellyfinUserId?: string; - @Column({ nullable: true }) + @Column({ nullable: true, select: false }) public jellyfinDeviceId?: string; - @Column({ nullable: true }) + @Column({ nullable: true, select: false }) public jellyfinAuthToken?: string; - @Column({ nullable: true }) + @Column({ nullable: true, select: false }) public plexToken?: string; @Column({ type: 'integer', default: 0 }) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 5fe0174ee..cbfbc3f79 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -263,6 +263,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => { // Try to find deviceId that corresponds to jellyfin user, else generate a new one let user = await userRepository.findOne({ where: { jellyfinUsername: body.username }, + select: { id: true, jellyfinDeviceId: true }, }); let deviceId = '';