fix: Replace runSystemRebuild with rebootSystem

pull/269/head
NaiJi ✨ 2023-08-06 18:24:41 -03:00
parent ffe923ef13
commit e97d52bad5
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@ mixin ServerActionsApi on GraphQLApiMap {
DateTime? time; DateTime? time;
try { try {
final GraphQLClient client = await getClient(); final GraphQLClient client = await getClient();
final response = await client.mutate$RunSystemRebuild(); final response = await client.mutate$RebootSystem();
if (response.hasException) { if (response.hasException) {
print(response.exception.toString()); print(response.exception.toString());
} }
if (response.parsedData!.runSystemRebuild.success) { if (response.parsedData!.rebootSystem.success) {
time = DateTime.now(); time = DateTime.now();
} }
} catch (e) { } catch (e) {