summaryrefslogtreecommitdiff
path: root/app/src/lib/common/assignments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/lib/common/assignments.ts')
-rw-r--r--app/src/lib/common/assignments.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/src/lib/common/assignments.ts b/app/src/lib/common/assignments.ts
index 79553cd..6e9d574 100644
--- a/app/src/lib/common/assignments.ts
+++ b/app/src/lib/common/assignments.ts
@@ -7,12 +7,12 @@ export interface CemetaryPlot {
}
/** Corresponds to `assignment_state`. */
-export type AssignmentState = "AWAITING_GARDENER_NOTIFICATION"
- | "AWAITING_FINISH"
- | "AWAITING_WATERMARKING"
- | "AWAITING_OWNER_NOTIFICATION"
- | "DONE"
- ;
+export type AssignmentState =
+ | "AWAITING_GARDENER_NOTIFICATION"
+ | "AWAITING_FINISH"
+ | "AWAITING_WATERMARKING"
+ | "AWAITING_OWNER_NOTIFICATION"
+ | "DONE";
/** A row from the `assignments` table. */
export interface Assignment {
@@ -23,10 +23,10 @@ export interface Assignment {
state: AssignmentState;
}
-
// FIXME: We have ORM at home. A more clearly defined (OOP) model layer.
/** Checks whether the state of the assignment allows it to be "finished". */
export function canBeFinished(assignment: Assignment): boolean {
- return (assignment.state === "AWAITING_GARDENER_NOTIFICATION" ||
- assignment.state === "AWAITING_FINISH")
+ return (
+ assignment.state === "AWAITING_GARDENER_NOTIFICATION" || assignment.state === "AWAITING_FINISH"
+ );
}