@xuda.io/account_module 1.2.159 → 1.2.161

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.mjs +9 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1413,6 +1413,15 @@ export const create_account_oauth_link = async function (req, job_id) {
1413
1413
  };
1414
1414
  };
1415
1415
 
1416
+ export const get_account_default_project_obj = async function (uid) {
1417
+ const { data: account_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
1418
+ return account_obj;
1419
+ };
1420
+ export const get_account_default_project_id = async function (uid) {
1421
+ const account_obj = await get_account_default_project_obj(uid);
1422
+ return account_obj.account_project_id;
1423
+ };
1424
+
1416
1425
  // setTimeout(async () => {
1417
1426
  // const uid = "0489f946c213947316647b468f029ed9"; //"aecc740881fd0a35098c738652000fab";
1418
1427
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.159",
3
+ "version": "1.2.161",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {