DROID-2079 Set | Fix | Proper type of prefilled timestamp (#784)

This commit is contained in:
Konstantin Ivanov 2024-01-18 18:26:52 +01:00 committed by konstantiniiv
parent be1a703ebe
commit dacaa6023e
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class CreateDataViewObject @Inject constructor(
dateProvider = dateProvider
)
if (updatedValue != null) {
put(filter.relation, "$updatedValue")
put(filter.relation, updatedValue.toDouble())
}
}
else -> {

View File

@ -529,7 +529,7 @@ class CreateDataViewObjectUseCaseTest {
val expected = Command.CreateObject(
template = template,
prefilled = mapOf(
filterDate.key to (expectedValue?.toString() ?: timestamp.toString()),
filterDate.key to (expectedValue?.toDouble() ?: timestamp.toDouble()),
),
internalFlags = listOf(InternalFlags.ShouldSelectTemplate),
space = SpaceId(spaceId),