diff --git a/README.md b/README.md index a0d9f4e4..22663f81 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ All data is stored in the [/data](data) folder as [CSV](https://en.wikipedia.org | closed | Date on which the channel closed (`YYYY-MM-DD`) | Optional | `2020-05-31` | | replaced_by | The ID of the channel that this channel was replaced by. | Optional | `CCTV1.cn` | | website | Official website URL. | Optional | `http://www.ahtv.cn/` | -| logo | Logo URL. Only URL with HTTPS protocol are allowed. Supported image types: `PNG`, `JPEG`. | Optional | `https://example.com/logo.png` | +| logo | Logo URL. Only URL with HTTPS protocol are allowed. Supported image types: `PNG`, `JPEG`. | Required | `https://example.com/logo.png` | ### categories diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 24fd158f..8866e33a 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -55,5 +55,5 @@ module.exports = { return helper.message(`"logo" has an invalid file extension "${ext}"`) } }) - .allow(null) + .required() }