From 87def2856e21e3664debb67880a0516db2acae02 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 20 Dec 2023 03:01:40 -0500 Subject: [PATCH] revert release url being nullable, we dont need it --- src/util/entities/ClientRelease.ts | 4 ++-- src/util/schemas/responses/UpdatesResponse.ts | 3 +-- 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.