From 33cc88e1d599ac89834793a914cb2293246dba34 Mon Sep 17 00:00:00 2001 From: Roberto Fontanarosa Date: Fri, 27 Sep 2024 15:53:32 +0200 Subject: [PATCH] fixed properties type --- functions/src/common/datastore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/common/datastore.ts b/functions/src/common/datastore.ts index cd42d703f..60c93a713 100644 --- a/functions/src/common/datastore.ts +++ b/functions/src/common/datastore.ts @@ -179,10 +179,10 @@ export class Datastore { async updateLoiProperties( surveyId: string, loiId: string, - properties: {[key: string]: string | number} + propertiesDoc: DocumentData ) { const loiRef = this.db_.doc(loi(surveyId, loiId)); - await loiRef.update({[l.properties]: properties}); + await loiRef.update({[l.properties]: propertiesDoc}); } static toFirestoreMap(geometry: any) {