mirror of
https://github.com/p-stream/providers.git
synced 2026-04-28 21:23:18 +00:00
fix bug where runAll() doesn't work for embed based returns
This commit is contained in:
parent
07f81707a3
commit
57a22c4a76
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export async function runAllProviders(list: ProviderList, ops: ProviderRunnerOpt
|
||||||
...contextBase,
|
...contextBase,
|
||||||
media: ops.media,
|
media: ops.media,
|
||||||
});
|
});
|
||||||
if (!isValidStream(output?.stream)) {
|
if (output?.stream && !isValidStream(output?.stream)) {
|
||||||
throw new NotFoundError('stream is incomplete');
|
throw new NotFoundError('stream is incomplete');
|
||||||
}
|
}
|
||||||
if (output?.stream && !flagsAllowedInFeatures(ops.features, output.stream.flags)) {
|
if (output?.stream && !flagsAllowedInFeatures(ops.features, output.stream.flags)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue