diff --git a/plugins/stored-constraints/src/utils.ts b/plugins/stored-constraints/src/utils.ts index 45485655..20821382 100644 --- a/plugins/stored-constraints/src/utils.ts +++ b/plugins/stored-constraints/src/utils.ts @@ -5,9 +5,10 @@ import { Constraint } from './stored.constraint' const api = new FlatfileClient() -export const getSheet = ( +export const getSheet = async ( event: FlatfileEvent -): Promise => api.sheets.get(event.context.sheetId) +): Promise => + await api.sheets.get(event.context.sheetId) export const getFields = ({ data }: { data: Flatfile.Sheet }) => data.config.fields