mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
Update src/runners/runner.ts
Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
parent
336859f359
commit
ac3dfb98e1
1 changed files with 1 additions and 2 deletions
|
|
@ -117,8 +117,7 @@ export async function runAllProviders(list: ProviderList, ops: ProviderRunnerOpt
|
|||
}
|
||||
|
||||
// run embed scrapers on listed embeds
|
||||
const sortedEmbeds = output.embeds;
|
||||
sortedEmbeds.sort((a, b) => embedIds.indexOf(a.embedId) - embedIds.indexOf(b.embedId));
|
||||
const sortedEmbeds = output.embeds.sort((a, b) => embedIds.indexOf(a.embedId) - embedIds.indexOf(b.embedId));
|
||||
|
||||
if (sortedEmbeds.length > 0) {
|
||||
ops.events?.discoverEmbeds?.({
|
||||
|
|
|
|||
Loading…
Reference in a new issue