Skip to content

Commit

Permalink
CLIENT_API -> 24
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoschkin committed Aug 20, 2024
1 parent ca4e3aa commit 20904e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/logic/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { voyageRawByDays } from './voyage_stats';
require('dotenv').config();

const JWT_SECRET = process.env.JWT_SECRET || 'not_very_secret';
const CLIENT_API = 22;
const CLIENT_API = 24;

export class ApiResult {
Status: number = 200;
Expand All @@ -39,7 +39,7 @@ export class ApiClass {
this._cancelToken = undefined;
}
}

async initializeCache() {
this._player_data = await loadProfileCache();

Expand Down Expand Up @@ -210,14 +210,14 @@ export class ApiClass {
// };
// }
// }

// if (!access_token) {
// return {
// Status: 400,
// Body: 'Missing required credentials'
// };
// }


// let fleet = await fetch(
// `https://app.startrektimelines.com/fleet/${fleetId}?access_token=${access_token}&client_api=${CLIENT_API}`
Expand Down Expand Up @@ -351,7 +351,7 @@ export class ApiClass {
// }
// };



// return {
// Status: 200,
Expand Down Expand Up @@ -470,7 +470,7 @@ export class ApiClass {

Logger.info('Get voyages', { crew, days });
let result = await voyageRawByDays(days, crew, opAnd)

return {
Status: 200,
Body: result
Expand Down

0 comments on commit 20904e4

Please sign in to comment.