This commit is contained in:
@@ -106,6 +106,7 @@ const start = async () => {
|
||||
const topic = `chat-${msgDoc.qr_code_uri}-${msgDoc.chat}`;
|
||||
const timestamp = new Date(msgDoc.created_at).getTime();
|
||||
const tag = `${topic}-${(timestamp - new Date(qrDoc.created_at).getTime()).toString(36)}`;
|
||||
console.debug("subscription", subscription);
|
||||
|
||||
const title = limitStringLengthWithEllipsis(
|
||||
`${qrDoc.name}: новое сообщение`,
|
||||
@@ -141,7 +142,8 @@ const start = async () => {
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Error sending notification to ${row.id} - ${JSON.stringify(error)}`,
|
||||
`Error sending notification to owner ${row.id} - ${JSON.stringify((error as Error).message)}`,
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -219,7 +221,8 @@ const start = async () => {
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Error sending notification to ${row.id} - ${JSON.stringify(error)}`,
|
||||
`Error sending notification to guest ${row.id} - ${JSON.stringify((error as Error).message)}`,
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user