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
20 lines
452 B
JavaScript
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,
|
|
});
|
|
};
|