5 Commits

Author SHA1 Message Date
Christian Benincasa
769b05d201 refactor: add media_source_id to relevant entities (#1106)
We should be referencing media_sources by their ID on programs,
external_ids, etc. This enables us to use proper foreign keys for
referential integrity at the DB level, not worry about unique names for
media sources, and simplifies a lot of the code relating to media source
deletion and the cleanup thereafter.

This change also introduces the DBContext, which should allow for
arbitrarily calling other DB accessor functions when within transactions
and not deadlocking the connection to the DB.
2025-02-28 15:53:29 -05:00
Christian Benincasa
8c5e462f89 Removes swagger-ui Fastify plugin, hopefully temporarily (#551)
We've seen reports like
https://github.com/chrisbenincasa/tunarr/issues/550 where swagger-ui
prevents the server from starting, permanently. I haven't been able to
reproduce this yet. We've opened an issue on the plugin repo to see if
they have ideas:
https://github.com/fastify/fastify-swagger-ui/issues/156

For now, we're not really in need of this anyway, so just remove it.

I've also updated a bunch of deps and shimmed in the "DOM" types in our
tsconfig since there are lots of errors when compiling during the lib
check phase for things like esbuild, vitest.
2024-06-22 07:56:50 -04:00
Christian Benincasa
200a15b336 Complete logging overhaul on server (#428) 2024-05-13 14:57:51 -04:00
Christian Benincasa
371c33da05 Upgrade ts-essentials to 9.4.2; ignore migrations in eslint conf; fix up Dockerfile for patches dir 2024-04-09 11:31:09 -04:00
Christian Benincasa
67f2d144e2 Dynamic channels - phase 1 (#231)
* Checkpoint - dynamic channels

* Yet another checkpoint

* Bump versions - makes a ton of stuff work magically; needed a patch for ts-essentials because of https://github.com/ts-essentials/ts-essentials/issues/381

* Checkpointing

* Checkpoint
2024-04-03 15:08:31 -04:00