mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-26 14:22:23 +02:00
Fix messages to file (#9319)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
+1
-1
Submodule communication updated: 069fa40d8a...f36ea74c26
@@ -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'
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user