Fix json naming of ProgramItem section_id to use camelCase
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2270c69f2b
commit
b5b87fe587
@ -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
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user