Fix broken graphql playground (#13287)
Fixes https://github.com/twentyhq/twenty/issues/12991 Also fixes a regression on main where updateEvent are not correctly emit when calling repository.update()
This commit is contained in:
@ -15,6 +15,10 @@ export const DateScalarType = new GraphQLScalarType({
|
||||
return new Date(parseInt(ast.value, 10));
|
||||
}
|
||||
|
||||
if (ast.kind === Kind.STRING) {
|
||||
return new Date(ast.value);
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user