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