Server info proper values (#3933)
* Adds failing test * Makes sure booleans are proper booleans * nits * Double negate so it also takes care of null
This commit is contained in:
@@ -181,9 +181,8 @@ class ParseServer {
|
||||
// We pass the options and the base class for the adatper,
|
||||
// Note that passing an instance would work too
|
||||
const pushController = new PushController();
|
||||
|
||||
const hasPushSupport = pushAdapter && push;
|
||||
const hasPushScheduledSupport = pushAdapter && push && scheduledPush;
|
||||
const hasPushSupport = !!(pushAdapter && push);
|
||||
const hasPushScheduledSupport = hasPushSupport && (scheduledPush === true);
|
||||
|
||||
const {
|
||||
disablePushWorker
|
||||
|
||||
Reference in New Issue
Block a user