Update src/runners/runner.ts

Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
mrjvs
2023-12-29 21:01:18 +01:00
committed by GitHub
parent 336859f359
commit ac3dfb98e1

View File

@@ -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?.({