chore: migrate version-history repository to kysely (#15267)

* chore: generate sql for version-history repository

* chore: run kysely-codegen

* chore: migrate version-history repository to kysely

* fix: change `| null` to `| undefined`

* chore: clean up unneeded async
This commit is contained in:
bo0tzz 2025-01-11 21:12:34 +01:00 committed by GitHub
parent beb31cebed
commit cab201270c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 20 deletions

View file

@ -5,5 +5,5 @@ export const IVersionHistoryRepository = 'IVersionHistoryRepository';
export interface IVersionHistoryRepository {
create(version: Omit<VersionHistoryEntity, 'id' | 'createdAt'>): Promise<VersionHistoryEntity>;
getAll(): Promise<VersionHistoryEntity[]>;
getLatest(): Promise<VersionHistoryEntity | null>;
getLatest(): Promise<VersionHistoryEntity | undefined>;
}