Skip to content

Commit

Permalink
Attempt to add timestamp to footrix.contact table and resolve POST 50…
Browse files Browse the repository at this point in the history
…0 error
  • Loading branch information
augustinecyr committed Apr 23, 2023
1 parent cc9b98a commit 67e653f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions frontend/src/app/components/contact.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ export class ContactComponent implements OnInit {
}

processForm() {
if (!this.attachment.nativeElement.files[0]) {
this.snackBar.open(
'Please attach your screenshots for our reference!',
'X',
{
duration: 3000,
}
);
return;
}
const contact = this.form.value as Contact;
contact.attachment = this.attachment.nativeElement.files[0];
console.log('assembling the form.....');
Expand Down
1 change: 1 addition & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CREATE TABLE `contact` (
`title` varchar(255) NOT NULL,
`text` text NOT NULL,
`attachment` mediumblob,
`timestamp` timestamp,
UNIQUE(`id`),
PRIMARY KEY (`id`)
);
Expand Down

1 comment on commit 67e653f

@vercel
Copy link

@vercel vercel bot commented on 67e653f Apr 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.