Skip to content

Commit

Permalink
qol
Browse files Browse the repository at this point in the history
  • Loading branch information
cmayeux05 committed Mar 7, 2024
1 parent 99f5836 commit 65a2881
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const DayDetailModal = ({
<Input.TextArea
onChange={e => setDescription(e.target.value)}
value={description}
required
//required
placeholder="Enter description"
></Input.TextArea>
</Form.Item>
Expand All @@ -186,7 +186,7 @@ const DayDetailModal = ({
onChange={e => setTekS(e.target.value)}
value={TekS}
className="input"
required
//required
placeholder="Enter tekS"
></Input>
</Form.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {

// validate the request
const { name, expectations, teks } = ctx.request.body;
if (!expectations || !name || !teks)
if ( !name)
return ctx.badRequest('A name, teks and expectations must be provided!', {
id: 'Learning-standard.update.body.invalid',
error: 'ValidationError',
Expand Down
5 changes: 2 additions & 3 deletions server/api/unit/controllers/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ module.exports = {
if (
!strapi.services.validator.isPositiveInt(number) ||
!strapi.services.validator.isPositiveInt(gradeId) ||
!teks_id ||
!name ||
!teks_description
//!teks_id ||
!name
)
return ctx.badRequest(
'A grade, name, teks_description must be provided! Number and Teks_id must be positive interger! ',
Expand Down

0 comments on commit 65a2881

Please sign in to comment.