check if ChangesetRequest granularity is a number (#2796)
parent
a09044a6f3
commit
31f7c7e0f2
|
@ -1365,6 +1365,11 @@ function handleChangesetRequest(client, message)
|
||||||
messageLogger.warn("Dropped message, changeset request has no granularity!");
|
messageLogger.warn("Dropped message, changeset request has no granularity!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(Number(message.data.granularity) !== message.data.granularity || message.data.granularity % 1 !== 0)
|
||||||
|
{
|
||||||
|
messageLogger.warn("Dropped message, changeset request granularity is not an integer!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(message.data.start == null)
|
if(message.data.start == null)
|
||||||
{
|
{
|
||||||
messageLogger.warn("Dropped message, changeset request has no start!");
|
messageLogger.warn("Dropped message, changeset request has no start!");
|
||||||
|
|
Loading…
Reference in New Issue