fix: recordings endpoint 500 — column 'transcription' doesn't exist

- SELECT transcription FROM voice_recordings fails because table has no such column
- Removed non-existent transcription from SELECT and interface
- Previous sql.raw() parameter binding also broken — fixed with proper drizzle sql``
This commit is contained in:
MythEclipse
2026-06-22 18:22:46 +07:00
parent 3a282d8467
commit a3c99a08c3
@@ -17,7 +17,6 @@ export interface RecordingRow {
download_url: string | null;
upload_status: string;
upload_error: string | null;
transcription: string | null;
created_at: number;
uploaded_at: number | null;
duration_bytes: number;
@@ -58,7 +57,7 @@ export class RecordingsService {
SELECT
id, user_id, username, avatar_url, guild_id, channel_id,
channel_name, filename, size_bytes, download_url,
upload_status, upload_error, transcription, created_at, uploaded_at,
upload_status, upload_error, created_at, uploaded_at,
COALESCE(size_bytes, 0) AS duration_bytes
FROM voice_recordings
${whereClause}