Right now, only the L1 and L2 text is required for a Vocab Item stored in MongoDB. We need to make L1 Audio and L2 Text required. The simple fix is going into the VocabItem schema and making the following change:
However, there is a good chance that this is going to break all of the our developer's apps since Mongoose will start complaining about a whole lot of vocab items stored in our Development Database that don't have audio files.
For now, let's wait till closer to Product Showcase or after Product Showcase before making this switch. We'll also have to clear the Development Database before doing this.
Right now, only the L1 and L2 text is required for a Vocab Item stored in MongoDB. We need to make L1 Audio and L2 Text required. The simple fix is going into the VocabItem schema and making the following change:
Before:
After:
However, there is a good chance that this is going to break all of the our developer's apps since Mongoose will start complaining about a whole lot of vocab items stored in our Development Database that don't have audio files.
For now, let's wait till closer to Product Showcase or after Product Showcase before making this switch. We'll also have to clear the Development Database before doing this.