aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-07-20 22:40:31 +0300
committerZephyrrus <[email protected]>2020-07-20 22:40:31 +0300
commitfe314a742f14f55883a0fcc8deeca6a918a5ccd6 (patch)
treefa554a7401344023ef8bd2c0a3213364546e95b8 /src/api/utils
parentfeat: add tag deletion from images (diff)
downloadhost.fuwn.me-fe314a742f14f55883a0fcc8deeca6a918a5ccd6.tar.xz
host.fuwn.me-fe314a742f14f55883a0fcc8deeca6a918a5ccd6.zip
fix: return the edited/changed/delete entity from API
Diffstat (limited to 'src/api/utils')
-rw-r--r--src/api/utils/Log.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/utils/Log.js b/src/api/utils/Log.js
index 99d11e4..9a5efc9 100644
--- a/src/api/utils/Log.js
+++ b/src/api/utils/Log.js
@@ -3,27 +3,27 @@ const { dump } = require('dumper.js');
class Log {
static info(args) {
- if (this.checkIfArrayOrObject(args)) dump(args);
+ if (Log.checkIfArrayOrObject(args)) dump(args);
else console.log(args); // eslint-disable-line no-console
}
static success(args) {
- if (this.checkIfArrayOrObject(args)) dump(args);
+ if (Log.checkIfArrayOrObject(args)) dump(args);
else console.log(chalk.green(args)); // eslint-disable-line no-console
}
static warn(args) {
- if (this.checkIfArrayOrObject(args)) dump(args);
+ if (Log.checkIfArrayOrObject(args)) dump(args);
else console.log(chalk.yellow(args)); // eslint-disable-line no-console
}
static error(args) {
- if (this.checkIfArrayOrObject(args)) dump(args);
+ if (Log.checkIfArrayOrObject(args)) dump(args);
else console.log(chalk.red(args)); // eslint-disable-line no-console
}
static debug(args) {
- if (this.checkIfArrayOrObject(args)) dump(args);
+ if (Log.checkIfArrayOrObject(args)) dump(args);
else console.log(chalk.gray(args)); // eslint-disable-line no-console
}