Fix messages to file (#9319)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-06-23 11:20:39 +04:00
committed by GitHub
parent 345d39a86b
commit 6300692e5f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ const config: Config = (() => {
DbUrl: process.env.DB_URL,
MaxSyncAttempts: parseNumber(process.env.MAX_SYNC_ATTEMPTS) ?? 3,
MessagesPerFile: parseNumber(process.env.MESSAGES_PER_FILE) ?? 500,
MinSyncMessagesCount: parseNumber(process.env.MIN_SYNC_MESSAGES_COUNT) ?? 1,
MinSyncMessagesCount: parseNumber(process.env.MIN_SYNC_MESSAGES_COUNT) ?? 60,
Port: parseNumber(process.env.PORT),
Secret: process.env.SECRET ?? 'secret',
ServiceID: process.env.SERVICE_ID ?? 'msg2file-service'
+2 -2
View File
@@ -117,7 +117,7 @@ export class PostgresDB {
FROM ${this.messagesTable}
WHERE workspace_id = $1::uuid
AND card_id = $2::varchar
AND id = ANY ($3::bigint[]);`
AND id = ANY ($3::varchar[]);`
await this.client.unsafe(sql, [workspace, card, ids])
}
@@ -129,7 +129,7 @@ export class PostgresDB {
FROM ${this.patchesTable}
WHERE workspace_id = $1::uuid
AND card_id = $2::varchar
AND message_id = ANY ($3::bigint[]);`
AND message_id = ANY ($3::varchar[]);`
await this.client.unsafe(sql, [workspace, card, ids])
}