Compare commits

...

1 Commits

Author SHA1 Message Date
OwsleyJr
5c014d93ba fix: add logs for the ping to refresh tokens 2024-09-21 16:48:30 -07:00
3 changed files with 10 additions and 3 deletions

View File

@@ -19,5 +19,11 @@
"typescript.preferences.importModuleSpecifier": "non-relative",
"files.associations": {
"globals.css": "tailwindcss"
}
},
"i18n-ally.localesPaths": [
"src/i18n",
"src/i18n/locale",
"src/pages/discover/movies/language",
"src/pages/discover/tv/language"
]
}

View File

@@ -365,7 +365,7 @@ class PlexTvAPI extends ExternalAPI {
}
}
public async pingToken() {
public async pingToken(displayName: string): Promise<void> {
try {
const response = await this.axios.get('/api/v2/ping', {
headers: {
@@ -379,6 +379,7 @@ class PlexTvAPI extends ExternalAPI {
logger.error('Failed to ping token', {
label: 'Plex Refresh Token',
errorMessage: e.message,
user: displayName,
});
}
}

View File

@@ -28,7 +28,7 @@ class RefreshToken {
}
const plexTvApi = new PlexTvAPI(user.plexToken);
plexTvApi.pingToken();
plexTvApi.pingToken(user.displayName);
}
}