chore: move config behind checks (#1211)

This commit is contained in:
Ali BARIN
2023-08-11 22:32:13 +02:00
committed by GitHub
parent a6a124d2e6
commit 25983e046c
8 changed files with 13 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
import Context from '../../types/express/context';
import { hasValidLicense } from '../../helpers/license.ee';
import Config from '../../models/config';
import Context from '../../types/express/context';
type Params = {
keys: string[];
@@ -10,6 +11,8 @@ const getConfig = async (
params: Params,
context: Context
) => {
if (!await hasValidLicense()) return {};
const configQuery = Config
.query();