test(config): write model tests
This commit is contained in:
@@ -4,6 +4,10 @@ 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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user