Refactor adjustment method selection
This commit is contained in:
17
routes/adjustmentMethods/ManualAdjustmentMethod.ts
Normal file
17
routes/adjustmentMethods/ManualAdjustmentMethod.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AdjustmentMethod, AdjustmentMethodResponse } from "./AdjustmentMethod";
|
||||
|
||||
|
||||
/**
|
||||
* Does not change the watering scale (only time data will be returned).
|
||||
*/
|
||||
async function calculateManualWateringScale( ): Promise< AdjustmentMethodResponse > {
|
||||
return {
|
||||
scale: undefined
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const ManualAdjustmentMethod: AdjustmentMethod = {
|
||||
calculateWateringScale: calculateManualWateringScale
|
||||
};
|
||||
export default ManualAdjustmentMethod;
|
||||
Reference in New Issue
Block a user