wip: clip
This commit is contained in:
parent
d53c55ecb5
commit
8e8459fa55
6 changed files with 193 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue