summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/streaming.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts
index aed0e674f9..c8c4a8a294 100644
--- a/src/server/api/streaming.ts
+++ b/src/server/api/streaming.ts
@@ -31,7 +31,7 @@ module.exports = (server: http.Server) => {
payload = payload.body;
}
if (type.startsWith('api:')) {
- type = payload.type.replace('api:', 'api-res:');
+ type = type.replace('api:', 'api-res:');
}
connection.send(JSON.stringify({
type: type,