Skip to content

Commit

Permalink
feat: Supprimer le contrôle de date future pour la date d'évacuation
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-benard committed Dec 16, 2024
1 parent 7379a11 commit f5e54e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ export default [
return value;
})
.custom((value, { req }) => {
const today = new Date();
today.setHours(0, 0, 0, 0);

if (value > today) {
throw new Error('La date de la fermeture du site ne peut pas être future');
}

if (req.body.shantytown && req.body.shantytown.declaredAt) {
const declaredDate = new Date(req.body.shantytown.declaredAt * 1000);
declaredDate.setHours(0, 0, 0, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
width="w-64"
name="closed_at"
:label="labels.closed_at"
:maxDate="new Date()"
:clearable="false"
v-bind="$attrs"
v-model="values.closed_at"
Expand Down

0 comments on commit f5e54e3

Please sign in to comment.