@xuda.io/account_module 1.2.1563 → 1.2.1564
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 +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3104,7 +3104,9 @@ export const record_ai_credit = async function (uid, credits = 0, source, detail
|
|
|
3104
3104
|
};
|
|
3105
3105
|
const save_ret = await db_module.save_couch_doc('xuda_billing', credit_doc);
|
|
3106
3106
|
// console.log(save_ret);
|
|
3107
|
+
return save_ret;
|
|
3107
3108
|
} catch (err) {
|
|
3108
3109
|
console.error(err);
|
|
3110
|
+
return { code: -78, data: err.message };
|
|
3109
3111
|
}
|
|
3110
3112
|
};
|