fix(feed): don't throw on unknown notification types.

This commit is contained in:
vulet 2021-02-23 11:06:23 +08:00
parent 58ef31356a
commit 14006d9209

View file

@ -65,7 +65,7 @@ const notifyFormatter = (res, roomId) => {
sendEventWithMeta(roomId, content, meta); sendEventWithMeta(roomId, content, meta);
break; break;
default: default:
throw 'Unknown notification type.'; return console.log('Unknown notification type.');
} }
}; };