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/server/api | |
| parent | wip: clip (diff) | |
| download | sharkey-8e8459fa559865428963b08e6422fba9617240f5.tar.gz sharkey-8e8459fa559865428963b08e6422fba9617240f5.tar.bz2 sharkey-8e8459fa559865428963b08e6422fba9617240f5.zip | |
wip: clip
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/endpoints/clips/update.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server/api/endpoints/clips/update.ts b/src/server/api/endpoints/clips/update.ts index 483941214c..4a1a31eb95 100644 --- a/src/server/api/endpoints/clips/update.ts +++ b/src/server/api/endpoints/clips/update.ts @@ -18,6 +18,14 @@ export const meta = { name: { validator: $.str.range(1, 100), + }, + + isPublic: { + validator: $.optional.bool + }, + + description: { + validator: $.optional.nullable.str.range(1, 2048) } }, @@ -42,7 +50,9 @@ export default define(meta, async (ps, user) => { } await Clips.update(clip.id, { - name: ps.name + name: ps.name, + description: ps.description, + isPublic: ps.isPublic, }); return await Clips.pack(clip.id); |