Skip to content

Commit

Permalink
Allow options.includeEvent for eventsToClassicApi
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed May 30, 2022
1 parent 8e6588b commit 2521266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/rest-api",
"version": "3.17.0",
"version": "3.18.0",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"hebcal"
Expand Down
3 changes: 3 additions & 0 deletions src/classic-rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export function eventToClassicApiObject(ev, options, leyning=true) {
} else if (typeof ev.linkedEvent !== 'undefined') {
result.memo = ev.linkedEvent.render(options.locale);
}
if (options.includeEvent) {
result.ev = ev;
}
return result;
}

Expand Down

0 comments on commit 2521266

Please sign in to comment.