1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-03 01:22:44 +01:00

fixed bad codegen and removed unnecessary type assertion again

This commit is contained in:
Arno Wiest 2025-01-28 20:42:41 +01:00
parent 46babca7f1
commit 8baa970146
2 changed files with 2 additions and 5 deletions
server/src

2
server/src/db.d.ts vendored
View file

@ -257,7 +257,7 @@ export interface NaturalearthCountries {
admin: string;
admin_a3: string;
coordinates: string;
id: number;
id: Generated<number>;
type: string;
}

View file

@ -210,10 +210,7 @@ export class MapRepository {
}
}
}
await this.db
.insertInto('naturalearth_countries_tmp')
.values(entities as unknown as NaturalEarthCountriesTempEntity)
.execute();
await this.db.insertInto('naturalearth_countries_tmp').values(entities).execute();
await sql`ALTER TABLE naturalearth_countries_tmp ADD PRIMARY KEY (id) WITH (FILLFACTOR = 100)`.execute(this.db);