Skip to content

Commit c82b1fa

Browse files
committed
Update expression.ts
1 parent 7534f71 commit c82b1fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

handwritten/firestore/dev/src/pipelines/expression.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8649,9 +8649,9 @@ export function nor(
86498649
* // Return "Active" if field "status" is 1, "Pending" if field "status" is 2,
86508650
* // and default to "Unknown" if none of the conditions are true.
86518651
* switchOn(
8652-
* equal(field("status"), 1), "Active",
8653-
* equal(field("status"), 2), "Pending",
8654-
* "Unknown"
8652+
* equal(field("status"), 1), constant("Active"),
8653+
* equal(field("status"), 2), constant("Pending"),
8654+
* constant("Unknown")
86558655
* )
86568656
* ```
86578657
*

0 commit comments

Comments
 (0)