refactor: enum casing (#19946)
This commit is contained in:
@@ -48,7 +48,7 @@ export class MoveRepository {
|
||||
eb.selectFrom('asset').select('id').whereRef('asset.id', '=', 'move_history.entityId'),
|
||||
),
|
||||
)
|
||||
.where('move_history.pathType', '=', sql.lit(AssetPathType.ORIGINAL))
|
||||
.where('move_history.pathType', '=', sql.lit(AssetPathType.Original))
|
||||
.execute();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export class MoveRepository {
|
||||
async cleanMoveHistorySingle(assetId: string): Promise<void> {
|
||||
await this.db
|
||||
.deleteFrom('move_history')
|
||||
.where('move_history.pathType', '=', sql.lit(AssetPathType.ORIGINAL))
|
||||
.where('move_history.pathType', '=', sql.lit(AssetPathType.Original))
|
||||
.where('entityId', '=', assetId)
|
||||
.execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user