[Gekidou HOTFIX] fixes saving threads in the DB (#6132)

* [Gekidou HOTFIX] fixes saving threads in the DB

`loadedInGlobalThreads` cannot be a property of the thread, the DB will
fail with unknown column upon saving.

This commit makes it an argument of handleThreads and
handleThreadInTeam.

Fixes wrong foreignKey in THREAD table associations.

* Fixes errors

* Fixes error
This commit is contained in:
Kyriakos Z
2022-04-06 17:37:17 +03:00
committed by GitHub
parent c85914f4ba
commit 3326f34933
11 changed files with 32 additions and 24 deletions

View File

@@ -92,6 +92,7 @@ export type HandleThreadsArgs = {
threads: Thread[];
prepareRecordsOnly?: boolean;
teamId?: string;
loadedInGlobalThreads?: boolean;
};
export type HandleThreadParticipantsArgs = {
@@ -103,6 +104,7 @@ export type HandleThreadParticipantsArgs = {
export type HandleThreadInTeamArgs = {
threadsMap: Record<string, Thread[]>;
prepareRecordsOnly?: boolean;
loadedInGlobalThreads?: boolean;
};
export type SanitizeReactionsArgs = {