Browse Source

Only give out thigns with titles.

master
Zed A. Shaw 3 months ago
parent
commit
82c51be1bf
  1. 2
      api/media.js

2
api/media.js

@ -15,7 +15,7 @@ export const get = async (req, res) => {
api.reply(200, media);
} else {
const media = await knex("media").orderBy("created_at", "desc");
const media = await knex("media").whereNotNull("title").orderBy("created_at", "desc");
api.reply(200, media);
}
} catch (error) {

Loading…
Cancel
Save