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

attempt to fix integrations

This commit is contained in:
François Darveau 2021-12-07 23:23:57 -05:00
parent 5474fe324f
commit e5154576b4
5 changed files with 53 additions and 15 deletions

View file

@ -4,7 +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');
const loadIntegrationsApps = require('../apps/getAllApps').loadIntegrationsApps;
// @desc Get all categories
// @route GET /api/categories
@ -13,7 +13,7 @@ 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);
await loadIntegrationsApps();
let categories;
let output;
@ -34,7 +34,7 @@ const getAllCategories = asyncWrapper(async (req, res, next) => {
[{ model: Bookmark, as: 'bookmarks' }, orderType, 'ASC'],
];
categories = categories = await Category.findAll({
categories = await Category.findAll({
include: [
{
model: App,