@whyour/qinglong 0.20.2 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
package/shell/start.sh CHANGED
@@ -47,10 +47,10 @@ if [[ $os_name == 'alpine' ]]; then
47
47
  netcat-openbsd
48
48
  elif [[ $os_name == 'debian' ]] || [[ $os_name == 'ubuntu' ]]; then
49
49
  apt update
50
- apt install -y git curl wget tzdata perl openssl jq nginx procps netcat openssh-client
50
+ apt install -y git curl wget tzdata perl openssl jq nginx procps netcat-openbsd openssh-client
51
51
  elif [[ $os_name == 'centos' ]]; then
52
52
  yum update
53
- yum install -y epel-release git curl wget tzdata perl openssl jq nginx procps netcat openssh-client
53
+ yum install -y epel-release git curl wget tzdata perl openssl jq nginx procps nc openssh-client
54
54
  else
55
55
  echo -e "暂不支持此系统部署 $os_name"
56
56
  exit 1
@@ -97,4 +97,4 @@ fi
97
97
 
98
98
  echo -e "############################################################\n"
99
99
  echo -e "启动完成..."
100
- echo -e "############################################################\n"
100
+ echo -e "############################################################\n"
@@ -294,7 +294,7 @@ let UserService = class UserService {
294
294
  }
295
295
  async getNotificationMode() {
296
296
  const doc = await this.getDb({ type: system_1.AuthDataType.notification });
297
- return doc.info;
297
+ return (doc.info || {});
298
298
  }
299
299
  async updateAuthDb(payload) {
300
300
  let doc = await system_1.SystemModel.findOne({ type: payload.type });