@xuda.io/account_module 1.2.1269 → 1.2.1270
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2406,9 +2406,9 @@ export const unarchive_contact = async function (req) {
|
|
|
2406
2406
|
};
|
|
2407
2407
|
|
|
2408
2408
|
export const unfriend_contact = async function (req) {
|
|
2409
|
-
const { contact_id } = req;
|
|
2409
|
+
const { uid, contact_id } = req;
|
|
2410
2410
|
try {
|
|
2411
|
-
const contact_ret = await
|
|
2411
|
+
const contact_ret = await get_contact(uid, contact_id);
|
|
2412
2412
|
if (contact_ret.code < 0) {
|
|
2413
2413
|
throw new Error(contact_ret.data);
|
|
2414
2414
|
}
|