Skip to content

Commit

Permalink
tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
sigdestad committed Feb 12, 2024
1 parent 206bd72 commit 3cf484e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ The response should now contain a new age filed, with a calculated value:
}
----


As you have now seen, XP lets you run server-side https://developer.enonic.com/docs/xp/stable/framework[TypeScript and JavaScript code]. API augmentation is just the tip of the iceberg - believe us.

== One last thing
Expand Down
2 changes: 1 addition & 1 deletion samples/guillotine/guillotine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const extensions = (graphQL) => {
}

// Calculate age
let age = null;
let age = 0;
const today = new Date();
const birthDate = new Date(env.source.dateofbirth);
age = today.getFullYear() - birthDate.getFullYear();
Expand Down

0 comments on commit 3cf484e

Please sign in to comment.