mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(cloudfunc) formatMsg: default arguments
This commit is contained in:
parent
c72c325417
commit
e54a722ec5
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ module.exports.apiURL = '/api/v1';
|
|||
module.exports.MAX_FILE_SIZE = 500 * 1024;
|
||||
module.exports.Entity = Entity;
|
||||
|
||||
module.exports.formatMsg = (msg, name, status = 'ok') => {
|
||||
module.exports.formatMsg = (msg, name, status) => {
|
||||
status = status || 'ok';
|
||||
|
||||
if (name)
|
||||
name = '("' + name + '")';
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue