Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
fix for ansible role
Browse files Browse the repository at this point in the history
  • Loading branch information
MacWale committed Mar 1, 2022
1 parent 9cac6d5 commit f53fe95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src-ui/src/app/directives/expiryDate.directive.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms";

export const expiryDateValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {
const created = control.get('created');
const expired = control.get('expired');
const created = control.get("created");
const expired = control.get("expired");
let expiredDate = new Date(expired.value);
let createdDate = new Date(created.value);
return createdDate >= expiredDate ? { expiredDateInvalid: true } : null;
Expand Down
1 change: 0 additions & 1 deletion src/documents/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import tqdm
from django.conf import settings
from django.db.models.signals import post_save
from django.db.models.signals import post_delete
from django.db.models.functions import Now
from whoosh.writing import AsyncWriter

Expand Down

0 comments on commit f53fe95

Please sign in to comment.