#2-protocol #10
3 changed files with 7 additions and 7 deletions
|
@ -11,12 +11,12 @@ export class protocol {
|
||||||
@Column({ type: "date" })
|
@Column({ type: "date" })
|
||||||
date: Date;
|
date: Date;
|
||||||
|
|
||||||
@Column({ type: "timestamp" })
|
@Column({ type: "timestamp", nullable: true })
|
||||||
starttime: Date;
|
starttime: Date;
|
||||||
|
|
||||||
@Column({ type: "timestamp" })
|
@Column({ type: "timestamp", nullable: true })
|
||||||
endtime: Date;
|
endtime: Date;
|
||||||
|
|
||||||
@Column({ type: "text" })
|
@Column({ type: "text", nullable: true })
|
||||||
summary: string;
|
summary: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
|
||||||
new TableColumn({
|
new TableColumn({
|
||||||
name: "starttime",
|
name: "starttime",
|
||||||
type: "timestamp",
|
type: "timestamp",
|
||||||
isNullable: false,
|
isNullable: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
await queryRunner.addColumn(
|
await queryRunner.addColumn(
|
||||||
|
@ -17,7 +17,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
|
||||||
new TableColumn({
|
new TableColumn({
|
||||||
name: "endtime",
|
name: "endtime",
|
||||||
type: "timestamp",
|
type: "timestamp",
|
||||||
isNullable: false,
|
isNullable: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
await queryRunner.addColumn(
|
await queryRunner.addColumn(
|
||||||
|
@ -25,7 +25,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
|
||||||
new TableColumn({
|
new TableColumn({
|
||||||
name: "summary",
|
name: "summary",
|
||||||
type: "text",
|
type: "text",
|
||||||
isNullable: false,
|
isNullable: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ export default abstract class ProtocolService {
|
||||||
.createQueryBuilder("protocol")
|
.createQueryBuilder("protocol")
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.limit(count)
|
.limit(count)
|
||||||
.orderBy("date")
|
.orderBy("date", "DESC")
|
||||||
.getManyAndCount()
|
.getManyAndCount()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue