test(config): write model tests

This commit is contained in:
Ali BARIN
2024-10-10 17:06:49 +00:00
parent 623ec66a79
commit c868070337
3 changed files with 193 additions and 0 deletions

View File

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