resolve can only return one thing at a time

This commit is contained in:
RealBeepMcJeep 2023-08-30 12:23:48 -07:00
parent f7576750fc
commit c1b76b5f48
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
websocket.once('error', reject);
websocket.once('message', (data, isBinary) => {
websocket.removeListener('error', reject);
resolve(data, isBinary);
resolve(data);
});
});
} catch (err) {