Skip to content

Node.js based forum software built for the modern web

fix: failing api test

Barış Soner Uşaklı524d5019bf75
diff --git a/src/api/users.js b/src/api/users.js
index 358e8e214a..51511c2c62 100644
--- a/src/api/users.js
+++ b/src/api/users.js
@@ -700,7 +700,7 @@ usersAPI.checkExportByType = async (caller, { uid, type }) => {
if (!await privileges.users.canExportData(caller.uid, uid)) {
throw new Error('[[error:no-privileges]]');
}
- await prepareExport({ uid, type });
+ return await prepareExport({ uid, type });
};
usersAPI.getExportByType = async (caller, { uid, type }) => {
diff --git a/test/api/schema.js b/test/api/schema.js
index 70172133df..beb644b365 100644
--- a/test/api/schema.js
+++ b/test/api/schema.js
@@ -437,7 +437,8 @@ describe('schema', () => {
});
it('should not error out when called', async function () {
- // Uncomment if there is a failing test console.log(this.url, method, path);
+ // Uncomment if there is a failing test
+ // console.log(this.url, method, path);
this.result = await executeRequest.call(this, method, path, context);
});