Remove the "device" field from get `/pushrules` response model.

This commit is contained in:
Benoit Marty 2023-01-09 18:07:47 +01:00
parent 08f56660ab
commit 6eece5b270
2 changed files with 0 additions and 7 deletions

View File

@ -30,10 +30,4 @@ internal data class GetPushRulesResponse(
*/ */
@Json(name = "global") @Json(name = "global")
val global: RuleSet, val global: RuleSet,
/**
* Device specific rules, apply only to current device.
*/
@Json(name = "device")
val device: RuleSet? = null
) )

View File

@ -42,7 +42,6 @@ internal class DefaultSavePushRulesTask @Inject constructor(@SessionDatabase pri
.findAll() .findAll()
.forEach { it.deleteOnCascade() } .forEach { it.deleteOnCascade() }
// Save only global rules for the moment
val globalRules = params.pushRules.global val globalRules = params.pushRules.global
val content = PushRulesEntity(RuleScope.GLOBAL).apply { kind = RuleSetKey.CONTENT } val content = PushRulesEntity(RuleScope.GLOBAL).apply { kind = RuleSetKey.CONTENT }