summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-20 03:01:40 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-20 03:01:40 -0500
commit87def2856e21e3664debb67880a0516db2acae02 (patch)
treeef2aa95619466a3264a13657ba9794c2612237ae
parentupdate download route (diff)
downloadserver-87def2856e21e3664debb67880a0516db2acae02.tar.xz
revert release url being nullable, we dont need it
-rw-r--r--src/util/entities/ClientRelease.ts4
-rw-r--r--src/util/schemas/responses/UpdatesResponse.ts3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/util/entities/ClientRelease.ts b/src/util/entities/ClientRelease.ts

index 776f882c..995c9492 100644 --- a/src/util/entities/ClientRelease.ts +++ b/src/util/entities/ClientRelease.ts
@@ -30,8 +30,8 @@ export class Release extends BaseClass { @Column() pub_date: Date; - @Column({ nullable: true }) - url: string | null; + @Column() + url: string; @Column() platform: string; diff --git a/src/util/schemas/responses/UpdatesResponse.ts b/src/util/schemas/responses/UpdatesResponse.ts
index 38076b1b..12baa5e1 100644 --- a/src/util/schemas/responses/UpdatesResponse.ts +++ b/src/util/schemas/responses/UpdatesResponse.ts
@@ -32,9 +32,8 @@ export interface UpdatesResponse { pub_date: string; /** * The URL to the corresponding installer. - * Only provided if auto updates are available for the selected platform. */ - url: string | null; + url: string; /** * Any extra notes for the update * Only provided if auto updates are available for the selected platform.