1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-02 17:35:17 +02:00

load apps when retrieving categories in order to create docker and kubernetes apps beforehand

This commit is contained in:
François Darveau 2021-12-07 17:21:59 -05:00
parent 7ae241ec4d
commit 5474fe324f
2 changed files with 4 additions and 7 deletions

View file

@ -4,6 +4,7 @@ const App = require('../../models/App');
const Bookmark = require('../../models/Bookmark');
const { Sequelize } = require('sequelize');
const loadConfig = require('../../utils/loadConfig');
const getAllApps = require('../apps/getAllApps');
// @desc Get all categories
// @route GET /api/categories
@ -11,6 +12,9 @@ const loadConfig = require('../../utils/loadConfig');
const getAllCategories = asyncWrapper(async (req, res, next) => {
const { useOrdering: orderType } = await loadConfig();
// Load apps to create apps from integrations (Docker, Kubernetes, etc.)
await getAllApps(req, res, next);
let categories;
let output;