fix form actions

This commit is contained in:
Fran Jurmanović
2025-08-27 21:52:35 +02:00
parent 76d08df3da
commit bb0a5ab66d
3 changed files with 28 additions and 32 deletions

View File

@@ -18,6 +18,10 @@ export async function startServerAction(serverId: string) {
}
}
export async function startServerEventAction(serverId: string) {
await startServerAction(serverId);
}
export async function stopServerAction(serverId: string) {
try {
const session = await requireAuth();
@@ -32,6 +36,10 @@ export async function stopServerAction(serverId: string) {
}
}
export async function stopServerEventAction(serverId: string) {
await stopServerAction(serverId);
}
export async function restartServerAction(serverId: string) {
try {
const session = await requireAuth();
@@ -45,3 +53,7 @@ export async function restartServerAction(serverId: string) {
};
}
}
export async function restartServerEventAction(serverId: string) {
await restartServerAction(serverId);
}