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:
parent
46babca7f1
commit
8baa970146
2 changed files with 2 additions and 5 deletions
server/src
2
server/src/db.d.ts
vendored
2
server/src/db.d.ts
vendored
|
@ -257,7 +257,7 @@ export interface NaturalearthCountries {
|
|||
admin: string;
|
||||
admin_a3: string;
|
||||
coordinates: string;
|
||||
id: number;
|
||||
id: Generated<number>;
|
||||
type: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue