fix: add tcPhoto field

This commit is contained in:
José Oliveira 2022-11-02 16:25:47 +00:00
parent 403e593171
commit 75a98461fe
2 changed files with 2 additions and 0 deletions

View file

@ -235,6 +235,7 @@ const configs = (parent, { currentConfigVersion }, { deviceId, deviceName, opera
const massageTerms = terms => (terms.active && terms.text) ? ({ const massageTerms = terms => (terms.active && terms.text) ? ({
tcPhoto: Boolean(terms.tcPhoto),
delay: Boolean(terms.delay), delay: Boolean(terms.delay),
title: terms.title, title: terms.title,
text: nmd(terms.text), text: nmd(terms.text),

View file

@ -71,6 +71,7 @@ type Trigger {
} }
type TermsDetails { type TermsDetails {
tcPhoto: Boolean!
delay: Boolean! delay: Boolean!
title: String! title: String!
accept: String! accept: String!