Use twentyORM in Timeline messaging (#6595)

- Remove raw queries and replace them by using `twentyORM`
- Refactor into services and utils

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Raphaël Bosi
2024-08-15 10:15:32 +02:00
committed by GitHub
parent 6927f46e1c
commit 08c7947b3b
19 changed files with 513 additions and 559 deletions

View File

@ -4,7 +4,7 @@ import { ObjectRecord } from '@/object-record/types/ObjectRecord';
export const generateDefaultRecordChipData = (record: ObjectRecord) => {
const name = isFieldFullNameValue(record.name)
? record.name.firstName + ' ' + record.name.lastName
: (record.name ?? '');
: record.name ?? '';
return {
name,