chore: remove redundant update-app-config mutation
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
import AppConfig from '../../models/app-config.js';
|
|
||||||
|
|
||||||
const updateAppConfig = async (_parent, params, context) => {
|
|
||||||
context.currentUser.can('update', 'App');
|
|
||||||
|
|
||||||
const { id, ...appConfigToUpdate } = params.input;
|
|
||||||
|
|
||||||
const appConfig = await AppConfig.query().findById(id).throwIfNotFound();
|
|
||||||
|
|
||||||
await appConfig.$query().patch(appConfigToUpdate);
|
|
||||||
|
|
||||||
return appConfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default updateAppConfig;
|
|
Reference in New Issue
Block a user