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:
@@ -17,7 +17,6 @@ export interface RecordingRow {
|
|||||||
download_url: string | null;
|
download_url: string | null;
|
||||||
upload_status: string;
|
upload_status: string;
|
||||||
upload_error: string | null;
|
upload_error: string | null;
|
||||||
transcription: string | null;
|
|
||||||
created_at: number;
|
created_at: number;
|
||||||
uploaded_at: number | null;
|
uploaded_at: number | null;
|
||||||
duration_bytes: number;
|
duration_bytes: number;
|
||||||
@@ -58,7 +57,7 @@ export class RecordingsService {
|
|||||||
SELECT
|
SELECT
|
||||||
id, user_id, username, avatar_url, guild_id, channel_id,
|
id, user_id, username, avatar_url, guild_id, channel_id,
|
||||||
channel_name, filename, size_bytes, download_url,
|
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
|
COALESCE(size_bytes, 0) AS duration_bytes
|
||||||
FROM voice_recordings
|
FROM voice_recordings
|
||||||
${whereClause}
|
${whereClause}
|
||||||
|
|||||||
Reference in New Issue
Block a user