Skip to content

Commit

Permalink
fix: kotlin ingress was adding "Method" (#578)
Browse files Browse the repository at this point in the history
Kotlin `extractIngress` was using the full path of the enum `Method.GET`
instead of just the value `GET` This would put an ingress route in the
db that wouldn't be found with our query.

Since it couldn't be found, all Kotlin ingresses would return `404 not
found`

This is a quick change by pulling just the part of the string we want,
but we may way a more robust solution the future.
  • Loading branch information
wesbillman authored Nov 9, 2023
1 parent 0b6fa08 commit c465dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class SchemaExtractor(
}
MetadataIngress(
path = pathArg,
method = methodArg,
method = methodArg.substringAfter("."),
)
}
}
Expand Down

0 comments on commit c465dcb

Please sign in to comment.