accounting_automation: Gmail читается от имени agents@ (участник группы invoice@), поиск по письмам на группу
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,7 @@ const app = buildApi({
|
||||
const mail = new GmailClient({
|
||||
auth,
|
||||
user: s.google.gmailUser,
|
||||
query: s.google.gmailQuery,
|
||||
processedIds: async (ids) => {
|
||||
const { rows } = await pool.query("select message_id from acc_mail_processed where message_id = any($1) and result <> 'error'", [ids]);
|
||||
return new Set(rows.map((r) => r.message_id as string));
|
||||
|
||||
Reference in New Issue
Block a user