mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
parent
c4412d8276
commit
3c22a302c7
@ -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')
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user