From d335f192cdd1fb2f714916cac1543cb0ecb0a7d7 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Mon, 2 Nov 2020 10:04:12 +0100 Subject: [PATCH] Fixed JSDOC --- app/scripts/user-scraper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/user-scraper.js b/app/scripts/user-scraper.js index 05cff21..c9c96e3 100644 --- a/app/scripts/user-scraper.js +++ b/app/scripts/user-scraper.js @@ -12,7 +12,7 @@ const UserData = require("./classes/user-data.js"); /** * @protected * Gets user data, such as username, url of watched threads, and profile picture url. - * @return {UserData} User data + * @return {Promise} User data */ module.exports.getUserData = async function() { // Fetch data @@ -34,7 +34,7 @@ module.exports.getUserData = async function() { * It connects to the page and extracts the name * of the currently logged in user and the URL * of their profile picture. - * @return {Object.} + * @return {Promise>} */ async function fetchUsernameAndAvatar() { // Fetch page @@ -59,7 +59,7 @@ async function fetchUsernameAndAvatar() { /** * @private * Gets the list of URLs of threads watched by the user. - * @returns {String[]} List of URLs + * @returns {Promise} List of URLs */ async function fetchWatchedThreadURLs() { // Local variables