mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +00:00
fix: Replace runSystemRebuild with rebootSystem
This commit is contained in:
parent
ffe923ef13
commit
e97d52bad5
|
@ -24,11 +24,11 @@ mixin ServerActionsApi on GraphQLApiMap {
|
|||
DateTime? time;
|
||||
try {
|
||||
final GraphQLClient client = await getClient();
|
||||
final response = await client.mutate$RunSystemRebuild();
|
||||
final response = await client.mutate$RebootSystem();
|
||||
if (response.hasException) {
|
||||
print(response.exception.toString());
|
||||
}
|
||||
if (response.parsedData!.runSystemRebuild.success) {
|
||||
if (response.parsedData!.rebootSystem.success) {
|
||||
time = DateTime.now();
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue