Skip to content

Commit 59314ae

Browse files
committed
Edit patron model
1 parent ac0fceb commit 59314ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models/api/sponsor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ export type APISponsorLevelWithSponsor = {
4848

4949
export type APIPatron = {
5050
name: string;
51-
message?: string | null;
51+
contribution_message?: string | null;
5252
};

src/models/sponsor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class Patron {
189189
static fromAPI(d: APIPatron): Patron {
190190
return new Patron({
191191
name: d.name,
192-
message: d.message,
192+
message: d.contribution_message,
193193
});
194194
}
195195

0 commit comments

Comments
 (0)