-
-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
I have such data class:
data class CaObject(
@Id val localId: UUID,
val name: String,
val icon: CaoIcon,
val lastInteractionDateTime: LocalDateTime?,
...
)
And I sometimes upsert values in ObjectsRepository like this:
fun put(caObject: CaObject) = Completable.fromCallable {
repository.update(caObject, true)
}
I don't know in what excact moment or after what exact operation(maybe upsert isn't guilty), but now I have two objects with the same @Id in one collection:
[CaObject(localId=2deb953a-6218-4ba7-8309-96fca93bfa0d, name=1234, ...),
CaObject(localId=2deb953a-6218-4ba7-8309-96fca93bfa0d, name=1234 ...)]
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done