Skip to content

Commit d96bba5

Browse files
authored
Fix missing await during JSON deserialization (#301)
1 parent 78b4cc0 commit d96bba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemaregistry/serde/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class JsonDeserializer extends Deserializer implements JsonSerde {
207207
} else {
208208
target = info
209209
}
210-
msg = this.executeRules(subject, topic, RuleMode.READ, null, target, msg, null)
210+
msg = await this.executeRules(subject, topic, RuleMode.READ, null, target, msg, null)
211211
if ((this.conf as JsonSerdeConfig).validate) {
212212
const validate = await this.toValidateFunction(info)
213213
if (validate != null && !validate(JSON.parse(msg))) {

0 commit comments

Comments
 (0)