You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-03 23:00:25 +02:00
improving tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn} from "typeorm";
|
||||
import {DirectoryDTO} from "../../../../common/entities/DirectoryDTO";
|
||||
import {PhotoEntity} from "./PhotoEntity";
|
||||
import {Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn} from 'typeorm';
|
||||
import {DirectoryDTO} from '../../../../common/entities/DirectoryDTO';
|
||||
import {PhotoEntity} from './PhotoEntity';
|
||||
|
||||
@Entity()
|
||||
export class DirectoryEntity implements DirectoryDTO {
|
||||
@@ -23,12 +23,12 @@ export class DirectoryEntity implements DirectoryDTO {
|
||||
/**
|
||||
* Last time the directory was fully scanned, not only for a few photos to create a preview
|
||||
*/
|
||||
@Column({type: "bigint", nullable: true})
|
||||
@Column({type: 'bigint', nullable: true})
|
||||
public lastScanned: number;
|
||||
|
||||
isPartial?: boolean;
|
||||
|
||||
@ManyToOne(type => DirectoryEntity, directory => directory.directories, {onDelete: "CASCADE"})
|
||||
@ManyToOne(type => DirectoryEntity, directory => directory.directories, {onDelete: 'CASCADE'})
|
||||
public parent: DirectoryEntity;
|
||||
|
||||
@OneToMany(type => DirectoryEntity, dir => dir.parent)
|
||||
|
||||
Reference in New Issue
Block a user