We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3cd346 commit 3fcc1ccCopy full SHA for 3fcc1cc
src/pages/[platform]/build-a-backend/functions/examples/user-attribute-validation/index.mdx
@@ -50,7 +50,7 @@ import type { PreSignUpTriggerHandler } from "aws-lambda"
50
function isOlderThan(date: Date, age: number) {
51
const comparison = new Date()
52
comparison.setFullYear(comparison.getFullYear() - age)
53
- return date.getTime() > comparison.getTime()
+ return date.getTime() <= comparison.getTime()
54
}
55
56
export const handler: PreSignUpTriggerHandler = async (event) => {
0 commit comments