Skip to content

Commit

Permalink
fix: merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasBousselin committed Jun 17, 2024
1 parent 9ad916c commit 9195e61
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ class EntityOperationHandler(
?: batchEntityPreparation.right()
}

<<<<<<< HEAD
=======
private suspend fun prepareEntitiesFromRequestBody(
requestBody: Mono<String>,
httpHeaders: HttpHeaders,
Expand All @@ -385,7 +383,6 @@ class EntityOperationHandler(
expandAndPrepareBatchOfEntities(body, context, httpHeaders.contentType).bind()
}

>>>>>>> d1935841 (fix(EntityOperationHandler): change function name to prepareEntitiesFromRequestBody)
private suspend fun doBatchCreation(
entitiesToCreate: List<JsonLdNgsiLdEntity>,
batchOperationResult: BatchOperationResult,
Expand Down Expand Up @@ -440,17 +437,4 @@ class EntityOperationHandler(
)
}
}

private suspend fun getNgsiLdEntities(
requestBody: Mono<String>,
httpHeaders: HttpHeaders,
): Either<APIException, BatchEntityPreparation> = either {
val body = requestBody.awaitFirst().deserializeAsList()
.checkNamesAreNgsiLdSupported().bind()
.checkContentIsNgsiLdSupported().bind()
checkBatchRequestBody(body).bind()
checkContentType(httpHeaders, body).bind()
val context = getContextFromLinkHeader(httpHeaders.getOrEmpty(HttpHeaders.LINK)).bind()
return@either expandAndPrepareBatchOfEntities(body, context, httpHeaders.contentType).bind()
}
}

0 comments on commit 9195e61

Please sign in to comment.