Fix json naming of ProgramItem section_id to use camelCase
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex Mikhalev 2020-09-27 17:00:00 -06:00
parent 2270c69f2b
commit b5b87fe587
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ CREATE VIEW program_sequences AS
WITH psi_sorted AS ( WITH psi_sorted AS (
SELECT psi.program_id program_id, SELECT psi.program_id program_id,
json_object( json_object(
'section_id', psi.section_id, 'sectionId', psi.section_id,
'duration', psi.duration) 'duration', psi.duration)
obj obj
FROM program_sequence_items AS psi FROM program_sequence_items AS psi

View File

@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
use std::{sync::Arc, time::Duration}; use std::{sync::Arc, time::Duration};
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ProgramItem { pub struct ProgramItem {
pub section_id: SectionId, pub section_id: SectionId,
#[serde( #[serde(