Skip to content

Commit

Permalink
fixed properties type
Browse files Browse the repository at this point in the history
  • Loading branch information
rfontanarosa committed Sep 27, 2024
1 parent c6e777e commit 33cc88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/src/common/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Check warning on line 188 in functions/src/common/datastore.ts

View workflow job for this annotation

GitHub Actions / Check

Unexpected any. Specify a different type
Expand Down

0 comments on commit 33cc88e

Please sign in to comment.