chore: remove redundant update-app-config mutation

This commit is contained in:
Ali BARIN
2024-08-29 13:23:26 +00:00
parent af6fa80d20
commit 01340f4597

View File

@@ -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;