diff options
Diffstat (limited to 'src/server/api/endpoints')
| -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); |