refactor(server): enums (#11809)

This commit is contained in:
Jason Rasmussen
2024-08-15 06:57:01 -04:00
committed by GitHub
parent fa64277476
commit b288241a5c
82 changed files with 242 additions and 207 deletions

View File

@@ -9,6 +9,7 @@ import { SmartSearchEntity } from 'src/entities/smart-search.entity';
import { StackEntity } from 'src/entities/stack.entity';
import { TagEntity } from 'src/entities/tag.entity';
import { UserEntity } from 'src/entities/user.entity';
import { AssetType } from 'src/enum';
import {
Column,
CreateDateColumn,
@@ -175,10 +176,3 @@ export class AssetEntity {
@Column({ type: 'uuid', nullable: true })
duplicateId!: string | null;
}
export enum AssetType {
IMAGE = 'IMAGE',
VIDEO = 'VIDEO',
AUDIO = 'AUDIO',
OTHER = 'OTHER',
}