Skip to content

Commit

Permalink
Path converted to typegoose
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefs committed Oct 18, 2023
1 parent 46cd582 commit 7e2e395
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 231 deletions.
4 changes: 4 additions & 0 deletions src/common/lib/mongoose-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class UrlType extends mongoose.SchemaType {
}
return url;
}

public get(fn: Function) {
return fn(this);
}
}

// @ts-ignore
Expand Down
Loading

0 comments on commit 7e2e395

Please sign in to comment.