From 99f6b11ec88be78ee7f5feac6d2f8ab5bac866ca Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Sun, 21 Jul 2019 11:55:04 +0300 Subject: [PATCH] update flagbox event timestamp --- src/game/game.dto.ts | 2 +- src/game/game.entity.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts index 838b32c..1809314 100644 --- a/src/game/game.dto.ts +++ b/src/game/game.dto.ts @@ -111,6 +111,6 @@ export class FlagboxEventDTO { @Min(0) @Max(3) capture: number; // which faction is capturing, same logic as in owner with numbers - oP_HistoryTimestamp?: string; + oP_HistoryTimestamp?: number; objective_point?: ObjectivePointEntity; } diff --git a/src/game/game.entity.ts b/src/game/game.entity.ts index cdea357..ccc6ea2 100644 --- a/src/game/game.entity.ts +++ b/src/game/game.entity.ts @@ -103,7 +103,7 @@ export class ObjectivePointEntity { @Entity('ObjectivePoint_History') export class ObjectivePoint_HistoryEntity { @PrimaryGeneratedColumn('uuid') oP_HistoryId: string; - @Column({ type: 'timestamp' }) oP_HistoryTimestamp: Timestamp; + @Column({ type: 'float' }) oP_HistoryTimestamp: number; @Column('float') action: number; // If the owner Faction, capturer Faction or ObjectivePoint, that has, is trying to have or is the point where -- GitLab