Closed Cold-A-Muse closed 2 years ago
Sentry Issue: [HAAS-API-S1](https://sentry.io/organizations/haas/issues/3602108086/?referrer=Linear)
```
GraphQLError: Float cannot represent non numeric value: NaN
File "/app/node_modules/graphql/type/scalars.js", line 106, col 11, in GraphQLScalarType.serializeFloat [as serialize]
throw new _GraphQLError.GraphQLError("Float cannot represent non numeric value: ".concat((0, _inspect.default)(coercedValue)));
File "/app/node_modules/graphql/execution/execute.js", line 653, col 37, in completeLeafValue
var serializedResult = returnType.serialize(result);
File "/app/node_modules/graphql/execution/execute.js", line 578, col 12, in completeValue
return completeLeafValue(returnType, result);
File "/app/node_modules/graphql/execution/execute.js", line 556, col 21, in completeValue
var completed = completeValue(exeContext, returnType.ofType, fieldNodes, info, path, result);
File "/app/node_modules/graphql/execution/execute.js", line 469, col 16, in null.
Sentry Issue: [HAAS-API-S3](https://sentry.io/organizations/haas/issues/3602108240/?referrer=Linear)
```
GraphQLError: Float cannot represent non numeric value: NaN
File "/app/node_modules/graphql/type/scalars.js", line 106, col 11, in GraphQLScalarType.serializeFloat [as serialize]
throw new _GraphQLError.GraphQLError("Float cannot represent non numeric value: ".concat((0, _inspect.default)(coercedValue)));
File "/app/node_modules/graphql/execution/execute.js", line 653, col 37, in completeLeafValue
var serializedResult = returnType.serialize(result);
File "/app/node_modules/graphql/execution/execute.js", line 578, col 12, in completeValue
return completeLeafValue(returnType, result);
File "/app/node_modules/graphql/execution/execute.js", line 556, col 21, in completeValue
var completed = completeValue(exeContext, returnType.ofType, fieldNodes, info, path, result);
File "/app/node_modules/graphql/execution/execute.js", line 469, col 16, in null.
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-479.d2j37lx5gsfgp1.amplifyapp.com
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-479.d36c61y3h9mqcx.amplifyapp.com
in this PR
FIXES HAAS-437 FIXES HAAS-436 all meanBy functions now have '|| 0' added to make sure the returned value is always a number (instead of NaN)