mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): fk constraint violation when updating to 1.46 with deleted users and albums (#1716)
Fixes #1715
This commit is contained in:
parent
3d103046bc
commit
dab74662e9
3 changed files with 37 additions and 3 deletions
|
|
@ -1,5 +1,14 @@
|
|||
import { immichAppConfig } from '@app/common/config';
|
||||
import { AssetEntity, ExifEntity, SmartInfoEntity, UserEntity, APIKeyEntity, InfraModule } from '@app/infra';
|
||||
import {
|
||||
AssetEntity,
|
||||
ExifEntity,
|
||||
SmartInfoEntity,
|
||||
UserEntity,
|
||||
APIKeyEntity,
|
||||
InfraModule,
|
||||
UserTokenEntity,
|
||||
AlbumEntity,
|
||||
} from '@app/infra';
|
||||
import { StorageModule } from '@app/storage';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
|
|
@ -23,7 +32,15 @@ import { DomainModule } from '@app/domain';
|
|||
DomainModule.register({
|
||||
imports: [InfraModule],
|
||||
}),
|
||||
TypeOrmModule.forFeature([UserEntity, ExifEntity, AssetEntity, SmartInfoEntity, APIKeyEntity]),
|
||||
TypeOrmModule.forFeature([
|
||||
UserEntity,
|
||||
ExifEntity,
|
||||
AssetEntity,
|
||||
SmartInfoEntity,
|
||||
APIKeyEntity,
|
||||
UserTokenEntity,
|
||||
AlbumEntity,
|
||||
]),
|
||||
StorageModule,
|
||||
CommunicationModule,
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue