mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 22:40:56 -04:00
Made sure that more of the async usages are awaited (#4574)
This commit is contained in:
parent
a9a1cf1353
commit
0e3b3a9ab8
19 changed files with 53 additions and 53 deletions
|
@ -130,7 +130,7 @@ function userAuthorizer(username, password, callback) {
|
|||
* @param {express.Request} req Express request object
|
||||
* @param {express.Response} res Express response object
|
||||
* @param {express.NextFunction} next Next handler in chain
|
||||
* @returns {void}
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
exports.basicAuth = async function (req, res, next) {
|
||||
const middleware = basicAuth({
|
||||
|
@ -153,7 +153,7 @@ exports.basicAuth = async function (req, res, next) {
|
|||
* @param {express.Request} req Express request object
|
||||
* @param {express.Response} res Express response object
|
||||
* @param {express.NextFunction} next Next handler in chain
|
||||
* @returns {void}
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
exports.apiAuth = async function (req, res, next) {
|
||||
if (!await Settings.get("disableAuth")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue