Skip to content

Commit 45e4174

Browse files
authored
Fixing missing function call. (GraphQLGuide#43)
1 parent ce97904 commit 45e4174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/server/building/custom-scalars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default {
175175
}
176176
177177
const date = new Date(parseInt(ast.value))
178-
if (!isValid) {
178+
if (!isValid(date)) {
179179
throw new Error('Invalid Date literal')
180180
}
181181

0 commit comments

Comments
 (0)