3011 fill the messagerecipient table when fetching messages (#3073)

* wip

* trying to parse display names and emails

* add nodemailer mailparser

* mail parsing is working

* add personId and workspaceMemberId

* add date to messages

* Fix PR

* Run tsc on bigger machine

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
bosiraphael
2023-12-19 17:08:54 +01:00
committed by GitHub
parent b1ec3bdf42
commit 5afcab4e78
10 changed files with 263 additions and 56 deletions

View File

@ -81,6 +81,15 @@ export class MessageObjectMetadata extends BaseObjectMetadata {
@IsNullable()
body: string;
@FieldMetadata({
type: FieldMetadataType.DATE_TIME,
label: 'Date',
description: 'Date',
icon: 'IconCalendar',
})
@IsNullable()
date: string;
@FieldMetadata({
type: FieldMetadataType.RELATION,
label: 'Message Recipients',