Skip to content

Commit

Permalink
Video Lease Papercuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 17, 2024
1 parent d27a857 commit 0e8963a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions api/routes/video-lease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export default async function router(schema: Schema, config: Config) {
const lease = await videoControl.generate({
name: req.body.name,
ephemeral: req.body.ephemeral,
channel: req.body.channel,
expiration: req.body.permanent ? null : moment().add(req.body.duration, 'seconds').toISOString(),
path: req.body.path || randomUUID(),
username: user.email,
Expand Down
60 changes: 30 additions & 30 deletions api/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ async function deleteLease() {
try {
loading.value = true;
await std(`/api/video/lease/${props.lease.id}`, {
await std(`/api/video/lease/${editLease.value.id}`, {
method: 'DELETE',
});
Expand Down

0 comments on commit 0e8963a

Please sign in to comment.