Skip to content

Commit 157cf84

Browse files
committed
fix(converter): typo in extract method name
1 parent 5573046 commit 157cf84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

converter/converter/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def raise_error(message, code: int = 400):
3232
return jsonify({"error": message}), code
3333

3434

35-
def extract_message_type_from_paylaod():
35+
def extract_message_type_from_payload():
3636
try:
3737
data = request.get_json(silent=True) or {}
3838
edxl_json = data.get("edxl")
@@ -49,7 +49,7 @@ def extract_message_type_from_paylaod():
4949
"The number of seconds it took to the /convert endpoint to answer",
5050
labels={
5151
"status": lambda r: r.status_code,
52-
"message_type": extract_message_type_from_paylaod,
52+
"message_type": extract_message_type_from_payload,
5353
},
5454
)
5555
def convert():

0 commit comments

Comments
 (0)