Skip to content

Commit 6f4f59d

Browse files
committed
add entity-revision header
1 parent c14f20f commit 6f4f59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

things/service/src/main/java/org/eclipse/ditto/things/service/persistence/actors/strategies/commands/MigrateThingDefinitionStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private Result<ThingEvent<?>> handleMigrateDefinition(
163163

164164
final CompletionStage<WithDittoHeaders> responseStage = validatedStage.thenApply(pair ->
165165
appendETagHeaderIfProvided(command, MigrateThingDefinitionResponse.applied(context.getState(),
166-
pair.first().toJson(), dittoHeaders),
166+
pair.first().toJson(), createCommandResponseDittoHeaders(dittoHeaders, nextRevision)),
167167
pair.first()));
168168

169169
return ResultFactory.newMutationResult(command, eventStage, responseStage);

0 commit comments

Comments
 (0)