mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(config) saveData -> save
This commit is contained in:
parent
f1c8082252
commit
91ab03c0ed
1 changed files with 1 additions and 3 deletions
|
|
@ -28,8 +28,6 @@ const HOME = homedir();
|
|||
|
||||
const manageConfig = squad(traverse, cryptoPass);
|
||||
const save = promisify(_save);
|
||||
const noArgs = (fn) => () => fn();
|
||||
const saveData = noArgs(save);
|
||||
|
||||
const formatMsg = currify((a, b) => CloudFunc.formatMsg(a, b));
|
||||
|
||||
|
|
@ -199,7 +197,7 @@ async function patchConfig({name, request, response, cache}) {
|
|||
const json = jonny.parse(str);
|
||||
|
||||
manageConfig(json);
|
||||
saveData();
|
||||
await save();
|
||||
|
||||
const msg = formatMsg('config', key(json));
|
||||
ponse.send(msg, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue