8 lines
318 B
TypeScript
8 lines
318 B
TypeScript
import { DeviceAccountSettings } from "farmbot/dist/resources/api_resources";
|
|
|
|
/** Determines if the device was forced to wait due to log flooding. */
|
|
export const deviceIsThrottled =
|
|
(dev: Partial<DeviceAccountSettings> | undefined): boolean => {
|
|
return !!(dev && dev.throttled_at && dev.throttled_until);
|
|
};
|