doc: fix: docstring: use Promise

This commit is contained in:
2024-01-25 17:37:08 +01:00
parent 8eeb9ed4ab
commit c23500e0a0
8 changed files with 42 additions and 19 deletions

View File

@ -15,7 +15,7 @@ class Profiles
/**
*
* @returns {[Profile]}
* @returns {Promise<[Profile]>}
*/
async all()
{
@ -45,7 +45,7 @@ class Profiles
/**
* Block a user
* @param {Number} user_id
* @returns
* @returns {Promise<Object>}
*/
async block(user_id) {
@ -62,7 +62,7 @@ class Profiles
/**
* Unblock a user
* @param {Number} user_id
* @returns
* @returns {Promise<Object>}
*/
async deblock(user_id) {