[API/Vulcan] Once again fix ignoring 404 response on Addressbook.

This commit is contained in:
Kuba Szczodrzyński 2022-11-25 16:51:35 +01:00
parent 7fd2cad46b
commit f085e17ef7
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -445,7 +445,7 @@ open class VulcanHebe(open val data: DataVulcan, open val lastSync: Long?) {
)
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
apiGet(tag, url, query, allow404) { json: JsonArray?, response ->
apiGet(tag, url, query, allow404 = allow404) { json: JsonArray?, response ->
onSuccess(json?.map { it.asJsonObject } ?: listOf(), response)
}
}