Skip to content

Commit

Permalink
fixed functions name
Browse files Browse the repository at this point in the history
  • Loading branch information
ranim-n committed Feb 4, 2024
1 parent 1539a36 commit 4afeb58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import com.egm.stellio.subscription.utils.ParsingUtils.parseEndpointInfo
import com.egm.stellio.subscription.utils.ParsingUtils.parseEntitySelector
import com.egm.stellio.subscription.utils.ParsingUtils.toSqlColumnName
import com.egm.stellio.subscription.utils.ParsingUtils.toSqlValue
import com.egm.stellio.subscription.web.invalidSubscriptiondAttributeMessage
import com.egm.stellio.subscription.web.unsupportedSubscriptiondAttributeMessage
import com.egm.stellio.subscription.web.invalidSubscriptionAttributeMessage
import com.egm.stellio.subscription.web.unsupportedSubscriptionAttributeMessage
import io.r2dbc.postgresql.codec.Json
import kotlinx.coroutines.reactive.awaitFirst
import org.locationtech.jts.geom.Geometry
Expand Down Expand Up @@ -362,12 +362,12 @@ class SubscriptionService(
}

listOf("csf", "temporalQ").contains(it.key) -> {
NotImplementedException(unsupportedSubscriptiondAttributeMessage(subscriptionId, it.key))
NotImplementedException(unsupportedSubscriptionAttributeMessage(subscriptionId, it.key))
.left().bind<Unit>()
}

else -> {
BadRequestDataException(invalidSubscriptiondAttributeMessage(subscriptionId, it.key))
BadRequestDataException(invalidSubscriptionAttributeMessage(subscriptionId, it.key))
.left().bind<Unit>()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fun subscriptionNotFoundMessage(subscriptionId: URI) = "Could not find a subscri
fun subscriptionAlreadyExistsMessage(subscriptionId: URI) = "A subscription with id $subscriptionId already exists"
fun subscriptionUnauthorizedMessage(subscriptionId: URI) =
"User is not authorized to access subscription $subscriptionId"
fun unsupportedSubscriptiondAttributeMessage(subscriptionId: URI, key: String) =
fun unsupportedSubscriptionAttributeMessage(subscriptionId: URI, key: String) =
"Subscription $subscriptionId has unsupported attribute: $key"

fun invalidSubscriptiondAttributeMessage(subscriptionId: URI, key: String) =
fun invalidSubscriptionAttributeMessage(subscriptionId: URI, key: String) =
"Subscription $subscriptionId has invalid attribute: $key"

0 comments on commit 4afeb58

Please sign in to comment.