@xuda.io/account_module 1.2.17 → 1.2.19

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.
Files changed (2) hide show
  1. package/index.js +4 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -280,11 +280,8 @@ exports.increment_account_usage = async function (req) {
280
280
 
281
281
  // db data
282
282
  const couch_info_ret = await db_module.get_couch_app_info(app.id);
283
- app_obj.couch_info = {
284
- docs: couch_info_ret?.data?.doc_count,
285
- size: couch_info_ret?.data?.sizes?.active,
286
- };
287
- account_data.project_data_size += couch_info_ret?.data?.sizes?.active;
283
+ account_data.project_data_size +=
284
+ couch_info_ret?.data?.sizes?.active || 0;
288
285
  }
289
286
 
290
287
  const usage_id = await _common.xuda_get_uuid("usage");
@@ -689,8 +686,9 @@ exports.validate_user_plan = async function (req) {
689
686
  );
690
687
 
691
688
  if (
689
+ app_obj.app_type === "master" &&
692
690
  user_active_app_requests_count_ret.data?.rows?.[0]?.value >=
693
- plan.features.team
691
+ plan.features.team
694
692
  ) {
695
693
  return {
696
694
  code: -9,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {