diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts index 838b32c2ad00cdb2d80431489031a947f82dc7bd..1809314fb6cfcab6b7618f5b42add114505e157a 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 cdea35754f50744bf435c349c6ce9a23c2e53337..ccc6ea24bbeef81f6a899e862406e1cc6a43d174 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