Fix: Use seconds for unix timestamps to not compare seconds and milliseconds.
This commit is contained in:
parent
d06c732cfe
commit
3a253ba72e
3 changed files with 9 additions and 8 deletions
server/types
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue