1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

fix: fix frontend api timings (#6536)

Just a typo
This commit is contained in:
Jaanus Sellin 2024-03-13 15:10:48 +02:00 committed by GitHub
parent c4412d8276
commit 3c22a302c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -317,7 +317,6 @@ export default class ClientApplicationsStore
if (!rows.length) { if (!rows.length) {
throw new NotFoundError(`Could not find appName=${appName}`); throw new NotFoundError(`Could not find appName=${appName}`);
} }
const existingStrategies: string[] = await this.db const existingStrategies: string[] = await this.db
.select('name') .select('name')
.from('strategies') .from('strategies')

View File

@ -191,8 +191,8 @@ export default class FrontendAPIController extends Controller {
if (this.config.flagResolver.isEnabled('globalFrontendApiCache')) { if (this.config.flagResolver.isEnabled('globalFrontendApiCache')) {
const context = FrontendAPIController.createContext(req); const context = FrontendAPIController.createContext(req);
[toggles, newToggles] = await Promise.all([ [toggles, newToggles] = await Promise.all([
this.getTimedFrontendApiFeatures(req.user, context), this.getTimedFrontendApiFeatures(req, context),
this.getTimedNewFrontendApiFeatures(req.user, context), this.getTimedNewFrontendApiFeatures(req, context),
]); ]);
const sortedToggles = toggles.sort((a, b) => const sortedToggles = toggles.sort((a, b) =>
a.name.localeCompare(b.name), a.name.localeCompare(b.name),