diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 12:34:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-15 12:34:47 +0900 |
| commit | 8e8459fa559865428963b08e6422fba9617240f5 (patch) | |
| tree | 9ed13f15c3b3199cf1b9fc4e92c5584ceae2c48d /src/models | |
| parent | wip: clip (diff) | |
| download | misskey-8e8459fa559865428963b08e6422fba9617240f5.tar.gz misskey-8e8459fa559865428963b08e6422fba9617240f5.tar.bz2 misskey-8e8459fa559865428963b08e6422fba9617240f5.zip | |
wip: clip
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/repositories/clip.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/models/repositories/clip.ts b/src/models/repositories/clip.ts index 7cc3fb7110..f5c70a1829 100644 --- a/src/models/repositories/clip.ts +++ b/src/models/repositories/clip.ts @@ -15,8 +15,10 @@ export class ClipRepository extends Repository<Clip> { return { id: clip.id, createdAt: clip.createdAt.toISOString(), + userId: clip.userId, name: clip.name, description: clip.description, + isPublic: clip.isPublic, }; } } @@ -38,6 +40,11 @@ export const packedClipSchema = { format: 'date-time', description: 'The date that the Clip was created.' }, + userId: { + type: 'string' as const, + optional: false as const, nullable: false as const, + format: 'id', + }, name: { type: 'string' as const, optional: false as const, nullable: false as const, @@ -48,5 +55,10 @@ export const packedClipSchema = { optional: false as const, nullable: true as const, description: 'The description of the Clip.' }, + isPublic: { + type: 'boolean' as const, + optional: false as const, nullable: false as const, + description: 'Whether this Clip is public.', + }, }, }; |