bugfix import
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import { BaseService, type ServiceResult } from "@dpu/shared";
|
||||
import type { GadgetbridgeClient, StepRow } from "./client.js";
|
||||
import { BaseService, type ServiceResult, type StepRow } from "@dpu/shared";
|
||||
import type { GadgetbridgeClient } from "./client.js";
|
||||
|
||||
export class GadgetbridgeService extends BaseService<GadgetbridgeClient> {
|
||||
getStepsForTimespan(
|
||||
from: Date,
|
||||
to: Date,
|
||||
): ServiceResult<StepRow[] | string> {
|
||||
getStepsForTimespan(from: Date, to: Date): ServiceResult<StepRow[] | string> {
|
||||
try {
|
||||
const fromTs = Math.floor(from.getTime() / 1000);
|
||||
// Add one day to make `to` inclusive
|
||||
|
||||
Reference in New Issue
Block a user