Revert "chore: removed unneeded await"

This reverts commit 1b0a8b00c2.
This commit is contained in:
bholmesdev 2023-04-27 11:48:22 -04:00
parent 1b0a8b00c2
commit 63b58119bb

View file

@ -88,7 +88,7 @@ export function createGetEntryBySlug({
getRenderEntryImport: GetEntryImport;
}) {
return async function getEntryBySlug(collection: string, slug: string) {
const entryImport = getEntryImport(collection, slug);
const entryImport = await getEntryImport(collection, slug);
if (typeof entryImport !== 'function') return undefined;
const entry = await entryImport();