Fix: Use seconds for unix timestamps to not compare seconds and milliseconds.

This commit is contained in:
baldo 2021-08-09 21:54:13 +02:00
parent d06c732cfe
commit 3a253ba72e
3 changed files with 9 additions and 8 deletions
server/types

View file

@ -6,7 +6,8 @@ export type Token = string;
export type FastdKey = string;
export type MAC = string;
export type UnixTimestamp = number;
export type UnixTimestampSeconds = number;
export type UnixTimestampMilliseconds = number;
export type MonitoringToken = string;
export enum MonitoringState {
@ -39,7 +40,7 @@ export type Node = {
monitoring: boolean;
monitoringConfirmed: boolean;
monitoringState: MonitoringState;
modifiedAt: UnixTimestamp;
modifiedAt: UnixTimestampSeconds;
};
// TODO: Complete interface / class declaration.