Skip to content

Commit 9c2e58b

Browse files
committed
refactor: updateClientAccess -> refreshClientAccess
fixes: sourceplusplus/sourceplusplus#558
1 parent bd0561a commit 9c2e58b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/kotlin/spp/protocol/service/LiveManagementService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface LiveManagementService {
5656
fun getClientAccess(id: String): Future<ClientAccess?>
5757
fun addClientAccess(): Future<ClientAccess>
5858
fun removeClientAccess(id: String): Future<Boolean>
59-
fun updateClientAccess(id: String): Future<ClientAccess>
59+
fun refreshClientAccess(id: String): Future<ClientAccess>
6060

6161
fun getClients(): Future<JsonObject>
6262
fun getStats(): Future<JsonObject>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mutation refreshClientAccess($id: String!) {
2+
refreshClientAccess(id: $id) {
3+
id
4+
secret
5+
}
6+
}

src/main/resources/graphql/client/update-client-access.graphql

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/resources/graphql/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@
35993599
"deprecationReason": null
36003600
},
36013601
{
3602-
"name": "updateClientAccess",
3602+
"name": "refreshClientAccess",
36033603
"description": null,
36043604
"args": [
36053605
{

0 commit comments

Comments
 (0)