mirror of
https://github.com/immich-app/immich.git
synced 2026-03-06 18:17:27 +03:00
refactor: database types (#19624)
This commit is contained in:
@@ -2,11 +2,12 @@ import { Injectable } from '@nestjs/common';
|
||||
import { Insertable, Kysely } from 'kysely';
|
||||
import { InjectKysely } from 'nestjs-kysely';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { DB, SystemMetadata as DbSystemMetadata } from 'src/db';
|
||||
import { GenerateSql } from 'src/decorators';
|
||||
import { DB } from 'src/schema';
|
||||
import { SystemMetadataTable } from 'src/schema/tables/system-metadata.table';
|
||||
import { SystemMetadata } from 'src/types';
|
||||
|
||||
type Upsert = Insertable<DbSystemMetadata>;
|
||||
type Upsert = Insertable<SystemMetadataTable>;
|
||||
|
||||
@Injectable()
|
||||
export class SystemMetadataRepository {
|
||||
|
||||
Reference in New Issue
Block a user