mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 21:31:57 +01:00
Allows the choice of limits on Count
This commit is contained in:
parent
a739329ab8
commit
5ee754c71a
@ -38,10 +38,11 @@ class CountCmd(
|
||||
fun toJson(
|
||||
requestId: String,
|
||||
filters: List<Filter>,
|
||||
limit: Int = 19,
|
||||
): String =
|
||||
filters.joinToStringLimited(
|
||||
separator = ",",
|
||||
limit = 19,
|
||||
limit = limit,
|
||||
prefix = """["COUNT","$requestId",""",
|
||||
postfix = "]",
|
||||
) {
|
||||
|
@ -31,9 +31,7 @@ class ToRelayParser {
|
||||
CloseCmd.LABEL -> CloseCmd.parse(msgArray)
|
||||
CountCmd.LABEL -> CountCmd.parse(msgArray)
|
||||
EventCmd.LABEL -> EventCmd.parse(msgArray)
|
||||
com.vitorpamplona.quartz.nip01Core.relays.commands.toRelay.ReqCmd.LABEL ->
|
||||
com.vitorpamplona.quartz.nip01Core.relays.commands.toRelay.ReqCmd
|
||||
.parse(msgArray)
|
||||
ReqCmd.LABEL -> ReqCmd.parse(msgArray)
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user