IMAP Fixes & Improvements (#13582)
- Removed caching of IMAP client as it was problematic and didn't really matter because of our pipeline, also added retry logic to client. - Some code refactoring and cleanup - Breaking changes: - Removed messageChannel.syncCursor - Uses messageFolder.syncCursor instead - Removed Date based sync cursor in favor of message UID which is much more reliable and precise --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+5
-1
@@ -175,7 +175,11 @@ export class WorkspaceInsertQueryBuilder<
|
||||
const resultWithoutInsertionExtraColumns = result.raw.map(
|
||||
(rawResult: Record<string, string>) =>
|
||||
Object.keys(rawResult)
|
||||
.filter((key) => this.expressionMap.returning.includes(key))
|
||||
.filter(
|
||||
(key) =>
|
||||
this.expressionMap.returning.includes(key) ||
|
||||
this.expressionMap.returning === '*',
|
||||
)
|
||||
.reduce((filtered: Record<string, string>, key) => {
|
||||
filtered[key] = rawResult[key];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user