Skip to content

Commit

Permalink
fix: add default value to meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Feb 25, 2023
1 parent 157616e commit 68befa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/transformers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getTransformers (ext: string, additionalTransformers: ContentTransforme
/**
* Parse content file using registered plugins
*/
export async function transformContent (id: string, content: string, meta: StorageMeta, options: TransformContentOptions = {}) {
export async function transformContent (id: string, content: string, meta: StorageMeta = {}, options: TransformContentOptions = {}) {
const { transformers = [] } = options
// Call hook before parsing the file
const file = { _id: id, body: content }
Expand Down

0 comments on commit 68befa0

Please sign in to comment.