fix: make display_name an Option so parsing doesn't fail
Some checks failed
FanslySync Build & Test / FanslySync Test Runner (push) Failing after 24m12s

This commit is contained in:
Sticks
2025-04-28 10:51:08 -04:00
parent d4d9d2ebce
commit a0649911fe
4 changed files with 15 additions and 10 deletions

View File

@ -53,7 +53,7 @@ export interface AccountInfoResponse {
export interface AccountInfo {
id: string;
username: string;
displayName: string;
displayName: string | null;
flags: number;
version: number;
createdAt: number;
@ -76,8 +76,6 @@ export interface AccountInfo {
banner: Avatar;
postLikes: number;
streaming: Streaming;
subscriptionTiers: SubscriptionTier[];
profileAccess: boolean;
}
export interface SubscriptionTier {

View File

@ -54,6 +54,9 @@
unknown
];
if (err || !me?.success) {
if (err) {
console.error('Error fetching account info:', err);
}
validationErrors.fanslyToken =
'Authentication failed. Please check your token and try again.';
step = 1;