returning fetch to make `fetchServerStatus` awaitable

Co-authored-by: Bastien Wirtz <bastien.wirtz@gmail.com>
pull/784/head
Emily Wotruba 2024-05-21 20:40:59 +02:00 committed by Bastien Wirtz
parent c53c3957d5
commit ce4d3a3dbe
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export default {
fetchServerStatus: async function () {
const headers = this.headers;
this.fetch("/api/", { headers })
return this.fetch("/api/", { headers })
.then((response) => {
if (response && response.message) this.status = "running";
else throw new Error();