mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +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;
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue