Skip to content

Commit 6300692

Browse files
Fix messages to file (#9319)
Signed-off-by: Kristina Fefelova <[email protected]>
1 parent 345d39a commit 6300692

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

services/msg2file/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const config: Config = (() => {
3232
DbUrl: process.env.DB_URL,
3333
MaxSyncAttempts: parseNumber(process.env.MAX_SYNC_ATTEMPTS) ?? 3,
3434
MessagesPerFile: parseNumber(process.env.MESSAGES_PER_FILE) ?? 500,
35-
MinSyncMessagesCount: parseNumber(process.env.MIN_SYNC_MESSAGES_COUNT) ?? 1,
35+
MinSyncMessagesCount: parseNumber(process.env.MIN_SYNC_MESSAGES_COUNT) ?? 60,
3636
Port: parseNumber(process.env.PORT),
3737
Secret: process.env.SECRET ?? 'secret',
3838
ServiceID: process.env.SERVICE_ID ?? 'msg2file-service'

services/msg2file/src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class PostgresDB {
117117
FROM ${this.messagesTable}
118118
WHERE workspace_id = $1::uuid
119119
AND card_id = $2::varchar
120-
AND id = ANY ($3::bigint[]);`
120+
AND id = ANY ($3::varchar[]);`
121121

122122
await this.client.unsafe(sql, [workspace, card, ids])
123123
}
@@ -129,7 +129,7 @@ export class PostgresDB {
129129
FROM ${this.patchesTable}
130130
WHERE workspace_id = $1::uuid
131131
AND card_id = $2::varchar
132-
AND message_id = ANY ($3::bigint[]);`
132+
AND message_id = ANY ($3::varchar[]);`
133133

134134
await this.client.unsafe(sql, [workspace, card, ids])
135135
}

0 commit comments

Comments
 (0)