0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

[ci] format

This commit is contained in:
horo 2024-04-11 14:41:22 +00:00 committed by astrobot-houston
parent 742866c566
commit ae12a7e32c

View file

@ -83,7 +83,8 @@ export function createGetCollection({
} else {
const limit = pLimit(10);
entries = await Promise.all(
lazyImports.map((lazyImport) => limit(async () => {
lazyImports.map((lazyImport) =>
limit(async () => {
const entry = await lazyImport();
return type === 'content'
? {
@ -105,7 +106,8 @@ export function createGetCollection({
collection: entry.collection,
data: entry.data,
};
}))
})
)
);
cacheEntriesByCollection.set(collection, entries);
}