change interval to intervals

as required by dependency https://github.com/kamui/retriable