mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-07 17:01:23 +08:00
Made sure that more of the async usages are awaited (#4574)
This commit is contained in:
@@ -195,7 +195,7 @@ class UptimeKumaServer {
|
||||
/**
|
||||
* Send list of monitors to client
|
||||
* @param {Socket} socket Socket to send list on
|
||||
* @returns {object} List of monitors
|
||||
* @returns {Promise<object>} List of monitors
|
||||
*/
|
||||
async sendMonitorList(socket) {
|
||||
let list = await this.getMonitorJSONList(socket.userID);
|
||||
@@ -227,7 +227,7 @@ class UptimeKumaServer {
|
||||
/**
|
||||
* Send maintenance list to client
|
||||
* @param {Socket} socket Socket.io instance to send to
|
||||
* @returns {object} Maintenance list
|
||||
* @returns {Promise<object>} Maintenance list
|
||||
*/
|
||||
async sendMaintenanceList(socket) {
|
||||
return await this.sendMaintenanceListByUserID(socket.userID);
|
||||
@@ -236,7 +236,7 @@ class UptimeKumaServer {
|
||||
/**
|
||||
* Send list of maintenances to user
|
||||
* @param {number} userID User to send list to
|
||||
* @returns {object} Maintenance list
|
||||
* @returns {Promise<object>} Maintenance list
|
||||
*/
|
||||
async sendMaintenanceListByUserID(userID) {
|
||||
let list = await this.getMaintenanceJSONList(userID);
|
||||
|
Reference in New Issue
Block a user