Fix email sync (#5132)
This commit is contained in:
18
.vscode/launch.json
vendored
18
.vscode/launch.json
vendored
@ -3,7 +3,7 @@
|
|||||||
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
|
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "twenty-server - dev debug",
|
"name": "twenty-server - start debug",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "yarn",
|
"runtimeExecutable": "yarn",
|
||||||
@ -17,6 +17,22 @@
|
|||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"console": "internalConsole",
|
"console": "internalConsole",
|
||||||
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "twenty-server - worker debug",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"runtimeExecutable": "yarn",
|
||||||
|
"runtimeVersion": "18",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"nx",
|
||||||
|
"run",
|
||||||
|
"twenty-server:worker",
|
||||||
|
],
|
||||||
|
"outputCapture": "std",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
|
"console": "internalConsole",
|
||||||
|
"cwd": "${workspaceFolder}/packages/twenty-server/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -55,9 +55,11 @@ export class CacheStorageService {
|
|||||||
return this.get(key).then((res: string[]) => {
|
return this.get(key).then((res: string[]) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.set(key, res.slice(0, -size));
|
this.set(key, res.slice(0, -size));
|
||||||
|
|
||||||
|
return res.slice(-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return [];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export const GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 50;
|
export const GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user