bugfix import

This commit is contained in:
Darius
2026-03-05 20:00:46 +01:00
parent 4569d786d8
commit 4d7efaf6dc

View File

@@ -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