Skip to content

Commit

Permalink
make pie parser async
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Jan 27, 2024
1 parent 72a6fad commit 45189bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/pie/pieParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const populateDb = (ast: Pie, db: PieDB) => {
};

export const parser: ParserDefinition = {
parse: (input: string): void => {
const ast: Pie = parse('pie', input);
parse: async (input: string): Promise<void> => {
const ast: Pie = await parse('pie', input);
log.debug(ast);
populateDb(ast, db);
},
Expand Down

0 comments on commit 45189bf

Please sign in to comment.