mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
magic numbers (#4356)
This commit is contained in:
parent
b49090375d
commit
f80425c62e
1 changed files with 2 additions and 2 deletions
|
|
@ -16,9 +16,9 @@ export function calculateTimeWindow({
|
|||
throw new Error(`Invalid resolution. Expected an integer, received ${resolution}`);
|
||||
}
|
||||
|
||||
if (resolution < 10 || resolution > maxResolution) {
|
||||
if (resolution < 1 || resolution > maxResolution) {
|
||||
throw new Error(
|
||||
`Invalid resolution. Expected 10 <= x <= ${maxResolution}, received ${resolution}`,
|
||||
`Invalid resolution. Expected 1 <= x <= ${maxResolution}, received ${resolution}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue