✨ Fix syntax issue in asynchronous function definition for Gamemaster processing
This commit is contained in:
@@ -266,14 +266,14 @@ function processGamemaster() {
|
||||
}
|
||||
}
|
||||
async () => {
|
||||
const result = await apiClient.post('/api/gamemaster/process', {});
|
||||
// Reload server status after save
|
||||
await loadServerStatus(async () => {
|
||||
const response = await apiClient.get('/api/gamemaster/status');
|
||||
return response;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
const result = await apiClient.post('/api/gamemaster/process', {});
|
||||
// Reload server status after save
|
||||
await loadServerStatus(async () => {
|
||||
const response = await apiClient.get('/api/gamemaster/status');
|
||||
return response;
|
||||
});
|
||||
return result;
|
||||
};
|
||||
async function saveToServer() {
|
||||
if (!processedData.value) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user