From 63b58119bbd727b2fd962bd4b8ad706002eeee71 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Thu, 27 Apr 2023 11:48:22 -0400 Subject: [PATCH] Revert "chore: removed unneeded await" This reverts commit 1b0a8b00c2eca631a1b1005c256509295a414eef. --- packages/astro/src/content/runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/content/runtime.ts b/packages/astro/src/content/runtime.ts index 6831765fb..db565ea63 100644 --- a/packages/astro/src/content/runtime.ts +++ b/packages/astro/src/content/runtime.ts @@ -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();