d0c1841f0f
- Migration command
- Check IS_FILES_FIELD_MIGRATED:false
- Check or create avatarFile field
- Fetch all people with avatarUrl
- Move (Copy/move) file in storage
- Create core.file record
- Update person record
- bonus : attachment migration : fullPath > file (same logic)
- BE logic
- Add avatarFile field on person
- FE logic
- Adapt logic to upload on/display avatarFile data
The whole imageIdentifier logic will be done later
37 lines
575 B
TypeScript
37 lines
575 B
TypeScript
export const PERSON_GQL_FIELDS = `
|
|
id
|
|
city
|
|
jobTitle
|
|
avatarUrl
|
|
avatarFile {
|
|
fileId
|
|
label
|
|
extension
|
|
url
|
|
}
|
|
intro
|
|
searchVector
|
|
name {
|
|
firstName
|
|
lastName
|
|
}
|
|
emails {
|
|
primaryEmail
|
|
additionalEmails
|
|
}
|
|
phones {
|
|
primaryPhoneNumber
|
|
primaryPhoneCountryCode
|
|
primaryPhoneCallingCode
|
|
additionalPhones
|
|
}
|
|
whatsapp {
|
|
primaryPhoneNumber
|
|
primaryPhoneCountryCode
|
|
primaryPhoneCallingCode
|
|
additionalPhones
|
|
}
|
|
createdAt
|
|
deletedAt
|
|
`;
|