diff --git a/schemas/notableDonations.json b/schemas/notableDonations.json index 64108508..ec226706 100644 --- a/schemas/notableDonations.json +++ b/schemas/notableDonations.json @@ -19,7 +19,14 @@ "type": "number" }, "comment_state": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] }, "comment": { "oneOf": [ diff --git a/src/types/schemas/notableDonations.d.ts b/src/types/schemas/notableDonations.d.ts index 3ea6fe03..61554001 100644 --- a/src/types/schemas/notableDonations.d.ts +++ b/src/types/schemas/notableDonations.d.ts @@ -10,7 +10,8 @@ export type NotableDonations = { _id: number; donor_visiblename: string; amount: number; - comment_state?: string; + comment_state?: string | number; comment: string | null; time_received?: string; + [k: string]: unknown; }[];