mirror of
https://github.com/immich-app/immich.git
synced 2025-12-28 01:11:47 +03:00
chore: lifecycle metadata (#9103)
feat(server): track endpoint lifecycle
This commit is contained in:
@@ -61,4 +61,12 @@ export class Version implements IVersion {
|
||||
const [bool, type] = this.compare(version);
|
||||
return bool > 0 ? type : VersionType.EQUAL;
|
||||
}
|
||||
|
||||
compareTo(other: Version) {
|
||||
if (this.isEqual(other)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return this.isNewerThan(other) ? 1 : -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user