mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): new version check (#9555)
This commit is contained in:
parent
4807fc40a6
commit
c03981ac1d
16 changed files with 257 additions and 102 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { ApiProperty, ApiResponseProperty } from '@nestjs/swagger';
|
||||
import type { DateTime } from 'luxon';
|
||||
import { SystemConfigThemeDto } from 'src/dtos/system-config.dto';
|
||||
import { IVersion, VersionType } from 'src/utils/version';
|
||||
import { IVersion } from 'src/utils/version';
|
||||
|
||||
export class ServerPingResponse {
|
||||
@ApiResponseProperty({ type: String, example: 'pong' })
|
||||
|
|
@ -112,8 +111,9 @@ export class ServerFeaturesDto {
|
|||
}
|
||||
|
||||
export interface ReleaseNotification {
|
||||
isAvailable: VersionType;
|
||||
checkedAt: DateTime<boolean> | null;
|
||||
isAvailable: boolean;
|
||||
/** ISO8601 */
|
||||
checkedAt: string;
|
||||
serverVersion: ServerVersionResponseDto;
|
||||
releaseVersion: ServerVersionResponseDto;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue