Skip to content

Commit

Permalink
fix: fix frontend api timings (#6536)
Browse files Browse the repository at this point in the history
Just a typo
  • Loading branch information
sjaanus committed Mar 13, 2024
1 parent c4412d8 commit 3c22a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/db/client-applications-store.ts
Expand Up @@ -317,7 +317,6 @@ export default class ClientApplicationsStore
if (!rows.length) {
throw new NotFoundError(`Could not find appName=${appName}`);
}

const existingStrategies: string[] = await this.db
.select('name')
.from('strategies')
Expand Down
4 changes: 2 additions & 2 deletions src/lib/features/frontend-api/frontend-api-controller.ts
Expand Up @@ -191,8 +191,8 @@ export default class FrontendAPIController extends Controller {
if (this.config.flagResolver.isEnabled('globalFrontendApiCache')) {
const context = FrontendAPIController.createContext(req);
[toggles, newToggles] = await Promise.all([
this.getTimedFrontendApiFeatures(req.user, context),
this.getTimedNewFrontendApiFeatures(req.user, context),
this.getTimedFrontendApiFeatures(req, context),
this.getTimedNewFrontendApiFeatures(req, context),
]);
const sortedToggles = toggles.sort((a, b) =>
a.name.localeCompare(b.name),
Expand Down

0 comments on commit 3c22a30

Please sign in to comment.