Skip to content

Commit

Permalink
One more notableDonations tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 19, 2024
1 parent dbdd3dc commit e14cfc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion schemas/notableDonations.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
"type": "number"
},
"comment_state": {
"type": "string"
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"comment": {
"oneOf": [
Expand Down
3 changes: 2 additions & 1 deletion src/types/schemas/notableDonations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}[];

0 comments on commit e14cfc5

Please sign in to comment.