Linden Crandall 5075f5c5d8
Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
commit upstream files
2025-02-06 04:14:18 +09:00

20 lines
452 B
JavaScript

import Config from '../../src/models/config';
export const getConfig = async () => {
return await Config.get();
};
export const createConfig = async (params = {}) => {
return await Config.query().insertAndFetch(params);
};
export const updateConfig = async (params = {}) => {
return await Config.update(params);
};
export const markInstallationCompleted = async () => {
return await updateConfig({
installationCompleted: true,
});
};