fix: Unable to delete a Password history item with last used date set to null
This commit is contained in:
parent
dee746a5bc
commit
68f7d0236e
|
@ -165,7 +165,11 @@ data class BitwardenCipher(
|
||||||
val password: String,
|
val password: String,
|
||||||
val lastUsedDate: Instant? = null,
|
val lastUsedDate: Instant? = null,
|
||||||
) {
|
) {
|
||||||
val id = "$password|timestamp=$lastUsedDate"
|
val id = kotlin.run {
|
||||||
|
val timestamp = lastUsedDate
|
||||||
|
?.takeUnless { it.epochSeconds == 0L }
|
||||||
|
"$password|timestamp=$timestamp"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Reference in New Issue