#2-protocol #10

Merged
jkeffects merged 14 commits from #2-protocol into main 2024-10-29 14:45:37 +00:00
3 changed files with 7 additions and 7 deletions
Showing only changes of commit 5f434c943e - Show all commits

View file

@ -11,12 +11,12 @@ export class protocol {
@Column({ type: "date" })
date: Date;
@Column({ type: "timestamp" })
@Column({ type: "timestamp", nullable: true })
starttime: Date;
@Column({ type: "timestamp" })
@Column({ type: "timestamp", nullable: true })
endtime: Date;
@Column({ type: "text" })
@Column({ type: "text", nullable: true })
summary: string;
}

View file

@ -9,7 +9,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
new TableColumn({
name: "starttime",
type: "timestamp",
isNullable: false,
isNullable: true,
})
);
await queryRunner.addColumn(
@ -17,7 +17,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
new TableColumn({
name: "endtime",
type: "timestamp",
isNullable: false,
isNullable: true,
})
);
await queryRunner.addColumn(
@ -25,7 +25,7 @@ export class ProtocolBase1728037129072 implements MigrationInterface {
new TableColumn({
name: "summary",
type: "text",
isNullable: false,
isNullable: true,
})
);
}

View file

@ -13,7 +13,7 @@ export default abstract class ProtocolService {
.createQueryBuilder("protocol")
.offset(offset)
.limit(count)
.orderBy("date")
.orderBy("date", "DESC")
.getManyAndCount()
.then((res) => {
return res;