jbilcke-hf HF staff commited on
Commit
97fe33c
·
1 Parent(s): ccd48b8

ready for public release

Browse files
Files changed (1) hide show
  1. src/index.mts +2 -1
src/index.mts CHANGED
@@ -227,8 +227,9 @@ app.get("/:ownerId", async (req, res) => {
227
  try {
228
  const videos = await getAllVideosForOwner(ownerId)
229
  sortVideosByYoungestFirst(videos)
 
230
  res.status(200)
231
- res.write(JSON.stringify(videos, null, 2))
232
  res.end()
233
  } catch (err) {
234
  console.error(err)
 
227
  try {
228
  const videos = await getAllVideosForOwner(ownerId)
229
  sortVideosByYoungestFirst(videos)
230
+
231
  res.status(200)
232
+ res.write(JSON.stringify(videos.filter(video => video.status !== "delete"), null, 2))
233
  res.end()
234
  } catch (err) {
235
  console.error(err)