midway-fatcms 0.0.1-beta.52 → 0.0.1-beta.54

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.
@@ -56,9 +56,6 @@ let PublicApiController = class PublicApiController extends BaseApiController_1.
56
56
  },
57
57
  };
58
58
  const rows = await this.sysDBUtil.getList({ condition }, SystemTables_1.SystemTables.sys_menus);
59
- if (!rows || rows.length === 0) {
60
- return common_dto_1.CommonResult.errorRes('sys_config is null', '', { condition });
61
- }
62
59
  const map = {};
63
60
  for (let i = 0; i < rows.length; i++) {
64
61
  const rowElement = rows[i];
@@ -45,7 +45,7 @@ let UserAccountManageApi = class UserAccountManageApi extends BaseApiController_
45
45
  validateCfg: {
46
46
  'condition.id': [keys_1.KeysOfValidators.REQUIRED, keys_1.KeysOfValidators.NUMERIC],
47
47
  'data.login_name': LOGIN_NAME_VALIDATE,
48
- 'data.nick_name': [keys_1.KeysOfValidators.STRING, 'length:3,20', checkAccountCreateBlacklist],
48
+ 'data.nick_name': [keys_1.KeysOfValidators.STRING, 'length:2,20', checkAccountCreateBlacklist],
49
49
  },
50
50
  allowCfg: {
51
51
  data: ['login_name', 'nick_name', 'avatar', 'status', 'modified_at', 'created_at'],
@@ -62,7 +62,7 @@ let UserAccountManageApi = class UserAccountManageApi extends BaseApiController_
62
62
  return this.executeSysSimpleSQL(SystemTables_1.SystemTables.sys_user_account, keys_1.KeysOfSimpleSQL.SIMPLE_INSERT, {
63
63
  validateCfg: {
64
64
  'data.login_name': LOGIN_NAME_VALIDATE,
65
- 'data.nick_name': [keys_1.KeysOfValidators.REQUIRED, keys_1.KeysOfValidators.STRING, 'length:3,20', checkAccountCreateBlacklist],
65
+ 'data.nick_name': [keys_1.KeysOfValidators.REQUIRED, keys_1.KeysOfValidators.STRING, 'length:2,20', checkAccountCreateBlacklist],
66
66
  'data.avatar': [keys_1.KeysOfValidators.REQUIRED, keys_1.KeysOfValidators.STRING],
67
67
  },
68
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midway-fatcms",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.54",
4
4
  "description": "This is a midway component sample",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",