Commit cea911ee authored by nanahira's avatar nanahira

fix location thing

parent 2c6ab7f4
......@@ -53,7 +53,7 @@ export function adaptSession(bot: WeComBot, input: WecomEventResponse) {
timestamp: body.CreateTime,
};
if (body.MsgType === 'event') {
session.type = `wecom/${body.Event}`;
session.type = `wecom/${body.Event.replace('LOCATION', 'location')}`;
} else {
switch (body.MsgType) {
case 'text':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment