diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2024-10-05 14:37:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-05 14:37:52 +0900 |
| commit | 0d7d1091c8970d9979e8efb02f0accd6dcd39422 (patch) | |
| tree | c76208e6b85a579f414a2fd7cac1bc1bb51f67ef /packages/backend/src/models | |
| parent | #14675 レビューの修正 (#14705) (diff) | |
| download | sharkey-0d7d1091c8970d9979e8efb02f0accd6dcd39422.tar.gz sharkey-0d7d1091c8970d9979e8efb02f0accd6dcd39422.tar.bz2 sharkey-0d7d1091c8970d9979e8efb02f0accd6dcd39422.zip | |
enhance: 人気のPlayを10件以上表示できるように (#14443)
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/models')
| -rw-r--r-- | packages/backend/src/models/Flash.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/backend/src/models/Flash.ts b/packages/backend/src/models/Flash.ts index a1469a0d94..5db7dca992 100644 --- a/packages/backend/src/models/Flash.ts +++ b/packages/backend/src/models/Flash.ts @@ -7,6 +7,9 @@ import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typ import { id } from './util/id.js'; import { MiUser } from './User.js'; +export const flashVisibility = ['public', 'private'] as const; +export type FlashVisibility = typeof flashVisibility[number]; + @Entity('flash') export class MiFlash { @PrimaryColumn(id()) @@ -63,5 +66,5 @@ export class MiFlash { @Column('varchar', { length: 512, default: 'public', }) - public visibility: 'public' | 'private'; + public visibility: FlashVisibility; } |