mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
refactor/trim all the spaces for the operation_id
This commit is contained in:
parent
639cbbc02a
commit
8d5010be66
@ -9212,7 +9212,7 @@ trait APIMethods400 {
|
||||
json.extract[PostApiCollectionEndpointJson400]
|
||||
}
|
||||
_ <- Helper.booleanToFuture(failMsg = s"$InvalidOperationId Current OPERATION_ID(${postJson.operation_id})", cc=Some(cc)) {
|
||||
getAllResourceDocs.find(_.operationId==postJson.operation_id).isDefined
|
||||
getAllResourceDocs.find(_.operationId==postJson.operation_id.trim).isDefined
|
||||
}
|
||||
(apiCollection, callContext) <- NewStyle.function.getApiCollectionByUserIdAndCollectionName(cc.userId, apiCollectionName, Some(cc))
|
||||
apiCollectionEndpoint <- Future{MappedApiCollectionEndpointsProvider.getApiCollectionEndpointByApiCollectionIdAndOperationId(apiCollection.apiCollectionId, postJson.operation_id)}
|
||||
@ -9261,7 +9261,7 @@ trait APIMethods400 {
|
||||
json.extract[PostApiCollectionEndpointJson400]
|
||||
}
|
||||
_ <- Helper.booleanToFuture(failMsg = s"$InvalidOperationId Current OPERATION_ID(${postJson.operation_id})", cc=Some(cc)) {
|
||||
getAllResourceDocs.find(_.operationId==postJson.operation_id).isDefined
|
||||
getAllResourceDocs.find(_.operationId==postJson.operation_id.trim).isDefined
|
||||
}
|
||||
(apiCollection, callContext) <- NewStyle.function.getApiCollectionById(apiCollectioId, Some(cc))
|
||||
apiCollectionEndpoint <- Future{MappedApiCollectionEndpointsProvider.getApiCollectionEndpointByApiCollectionIdAndOperationId(apiCollection.apiCollectionId, postJson.operation_id)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user