Custom RTMP saved accounts, CUSTOM destination prepare, debug logging

- Add POST /providers/accounts/custom-rtmp endpoint for saved RTMP servers
- Encrypt rtmpUrl/streamKey in accessTokenEnc/refreshTokenEnc fields
- Decrypt and return rtmpUrl/streamKey in GET /providers/accounts for CUSTOM_RTMP
- Skip token revocation on DELETE for CUSTOM_RTMP accounts
- Decrypt CUSTOM_RTMP credentials into CUSTOM destinations on plan create/update
- Handle CUSTOM destinations in prepare lifecycle (already READY, skip provider auth)
- Add debug logging for plan operations and user upsert
This commit is contained in:
2026-03-01 10:50:28 +01:00
parent 02755bd1f0
commit 08cca68086
6 changed files with 239 additions and 46 deletions

View File

@@ -57,6 +57,8 @@ const metaAuthRoutes: FastifyPluginAsync = async (fastify) => {
}
// Upsert user
const existingUser = await fastify.prisma.user.findUnique({ where: { metaId } });
request.log.info({ metaId, userId: existingUser?.id, isNew: !existingUser }, 'User upsert');
const user = await fastify.prisma.user.upsert({
where: { metaId },
update: { displayName },