From 51df0a7a13ce7d6de03cbb35a88bfb5f00301dee Mon Sep 17 00:00:00 2001 From: zkldi Date: Sun, 9 May 2021 10:44:19 +0100 Subject: [PATCH] rename some criteria props to be consistent --- common/js/types.d.ts | 2 +- common/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 80115c101..8508e4ef6 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -476,7 +476,7 @@ export interface MilestoneDocument extends MongoDBDocument { * All: All goals must be achieved in order for the milestone to be complete * Count: Goals achieved must be greater than or equal to criteria.value. */ - type: "all" | "count" | "percent"; + type: "all" | "abs" | "proportion"; value: number | null; }; createdBy: integer; diff --git a/common/src/types.ts b/common/src/types.ts index d910ac930..78c5698d1 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -652,7 +652,7 @@ export interface MilestoneDocument extends MongoDBDocument { * All: All goals must be achieved in order for the milestone to be complete * Count: Goals achieved must be greater than or equal to criteria.value. */ - type: "all" | "count" | "percent"; + type: "all" | "abs" | "proportion"; value: number | null; }; createdBy: integer;