18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
import AppConfig from '../../models/app-config.js';
|
|
|
|
const getAppConfig = async (_parent, params, context) => {
|
|
context.currentUser.can('create', 'Connection');
|
|
|
|
const appConfig = await AppConfig.query()
|
|
.withGraphFetched({
|
|
appAuthClients: true,
|
|
})
|
|
.findOne({
|
|
key: params.key,
|
|
});
|
|
|
|
return appConfig;
|
|
};
|
|
|
|
export default getAppConfig;
|