Skip to content

Commit

Permalink
Explicitly await
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Nov 25, 2024
1 parent 485d363 commit b42ea42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/stored-constraints/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { Constraint } from './stored.constraint'

const api = new FlatfileClient()

export const getSheet = (
export const getSheet = async (
event: FlatfileEvent
): Promise<Flatfile.SheetResponse> => api.sheets.get(event.context.sheetId)
): Promise<Flatfile.SheetResponse> =>
await api.sheets.get(event.context.sheetId)

export const getFields = ({ data }: { data: Flatfile.Sheet }) =>
data.config.fields
Expand Down

0 comments on commit b42ea42

Please sign in to comment.