@xuda.io/account_module 1.2.163 → 1.2.164
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 +1 -14
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -386,23 +386,10 @@ export const increment_account_usage = async function (req) {
|
|
|
386
386
|
|
|
387
387
|
export const get_account_data = async function (req) {
|
|
388
388
|
var { uid, enforce_usage } = req;
|
|
389
|
-
// const get_info = async function () {
|
|
390
|
-
// const get_stripe_subscription = async function (subscription_id) {
|
|
391
|
-
// if (!subscription_id) {
|
|
392
|
-
// return { code: -1, data: "subscription_id missing" };
|
|
393
|
-
// }
|
|
394
|
-
// try {
|
|
395
|
-
// const ret = await stripe.subscriptions.retrieve(subscription_id);
|
|
396
|
-
|
|
397
|
-
// return { code: 1, data: ret };
|
|
398
|
-
// } catch (err) {
|
|
399
|
-
// return { code: -400, data: err };
|
|
400
|
-
// }
|
|
401
|
-
// };
|
|
402
389
|
|
|
403
390
|
try {
|
|
404
391
|
const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
405
|
-
|
|
392
|
+
|
|
406
393
|
var ret = { code: 1 };
|
|
407
394
|
ret.data = {
|
|
408
395
|
_id: acc_obj._id,
|