The functions findAllGamesByField, findPendingGamesByField and findApprovedGamesByField in game service will not return the expected exceptions.
using a typeORM's find() returns a empty array when founds nothing, and empty array is a truthy value in JS.
we need to throw the exception when the array is empty.
The functions findAllGamesByField, findPendingGamesByField and findApprovedGamesByField in game service will not return the expected exceptions.
using a typeORM's find() returns a empty array when founds nothing, and empty array is a truthy value in JS.
we need to throw the exception when the array is empty.