From 2118d6ba7c829e177a7bf4ab62d6c34dd24bb702 Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Thu, 12 Aug 2021 21:11:36 +0100 Subject: [PATCH] Add likes_total data definition in API --- app/src/api/config/dataFields.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index 523c3111..6086f2e2 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -260,6 +260,12 @@ export const dataFieldsConfig = valueType()({ /* eslint-disable asJson: true, sqlCast: 'jsonb', }, + + likes_total: { + edit: false, + derivedEdit: true, + verify: false + } }); export type Building = { [k in keyof typeof dataFieldsConfig]: any };