mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Use syncDbToPrefs in ExtensionStoreMutation
This commit is contained in:
@@ -37,7 +37,7 @@ class ExtensionStoreMutation {
|
|||||||
val store = ExtensionStoreService.fetch(indexUrl)
|
val store = ExtensionStoreService.fetch(indexUrl)
|
||||||
|
|
||||||
ExtensionStoreService.upsert(store)
|
ExtensionStoreService.upsert(store)
|
||||||
serverConfig.extensionStores.value = (serverConfig.extensionStores.value + indexUrl).distinct()
|
ExtensionStoreService.syncDbToPrefs()
|
||||||
val row =
|
val row =
|
||||||
transaction {
|
transaction {
|
||||||
ExtensionStoreTable
|
ExtensionStoreTable
|
||||||
@@ -82,7 +82,7 @@ class ExtensionStoreMutation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
serverConfig.extensionStores.value = serverConfig.extensionStores.value.filterNot { it == indexUrl }
|
ExtensionStoreService.syncDbToPrefs()
|
||||||
|
|
||||||
RemoveExtensionStorePayload(
|
RemoveExtensionStorePayload(
|
||||||
clientMutationId = clientMutationId,
|
clientMutationId = clientMutationId,
|
||||||
|
|||||||
Reference in New Issue
Block a user