mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-03 18:05:18 +02:00
load apps when retrieving categories in order to create docker and kubernetes apps beforehand
This commit is contained in:
parent
7ae241ec4d
commit
5474fe324f
2 changed files with 4 additions and 7 deletions
|
@ -43,13 +43,6 @@ export const Home = (): JSX.Element => {
|
|||
}
|
||||
}, []);
|
||||
|
||||
// Load bookmarks
|
||||
// useEffect(() => {
|
||||
// if (!bookmarkCategories.length) {
|
||||
// getBookmarkCategories();
|
||||
// }
|
||||
// }, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (localSearch) {
|
||||
// Search through apps
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue