Skip to content

Commit

Permalink
feat(api): add mongo to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Oct 29, 2024
1 parent 92b98e8 commit 4fc79be
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ExpandEmailEditorSchemaUsecase {
return !!(node.attrs && 'show' in node.attrs);
}

private regularExpension(eachObject: any, templateContent: TipTapNode[]): TipTapNode[] {
private regularExpansion(eachObject: any, templateContent: TipTapNode[]): TipTapNode[] {
const expandedContent: TipTapNode[] = [];
const jsonArrOfValues = eachObject as unknown as [{ [key: string]: string }];

Expand All @@ -71,13 +71,13 @@ export class ExpandEmailEditorSchemaUsecase {
const templateContent = node.content || [];

if (this.isOrderedList(templateContent) && templateContent[0].content) {
return [{ ...templateContent[0], content: this.regularExpension(eachObject, templateContent[0].content) }];
return [{ ...templateContent[0], content: this.regularExpansion(eachObject, templateContent[0].content) }];
}
if (this.isBulletList(templateContent) && templateContent[0].content) {
return [{ ...templateContent[0], content: this.regularExpension(eachObject, templateContent[0].content) }];
return [{ ...templateContent[0], content: this.regularExpansion(eachObject, templateContent[0].content) }];
}

return this.regularExpension(eachObject, templateContent);
return this.regularExpansion(eachObject, templateContent);
}

private removeNodeFromParent(node: TipTapNode, parentNode?: TipTapNode) {
Expand Down

0 comments on commit 4fc79be

Please sign in to comment.