@xuda.io/account_module 1.2.159 → 1.2.160
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/index.mjs +9 -0
- 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.account_project_id;
|
|
1419
|
+
};
|
|
1420
|
+
export const get_account_default_project_id = async function (uid) {
|
|
1421
|
+
const account_obj = await get_account_object(uid);
|
|
1422
|
+
return account_obj.account_project_id;
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1416
1425
|
// setTimeout(async () => {
|
|
1417
1426
|
// const uid = "0489f946c213947316647b468f029ed9"; //"aecc740881fd0a35098c738652000fab";
|
|
1418
1427
|
|