feat: extend notification system with batch sender, bulk dialog, and logging
Add NotificationLog schema extensions (nullable userId, email, roundId, projectId, batchId fields), batch notification sender service, and bulk notification dialog UI. Include utility scripts for debugging and seeding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
26
scripts/send-invite.ts
Normal file
26
scripts/send-invite.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { sendInvitationEmail } from '../src/lib/email';
|
||||
|
||||
const token = '6f974b1da9fae95f74bbcd2419df589730979ac945aeaa5413021c00311b5165';
|
||||
const url = 'http://localhost:3000/accept-invite?token=' + token;
|
||||
|
||||
async function main() {
|
||||
console.log('Sending styled invitation email...');
|
||||
console.log('To: matt.ciaccio@gmail.com');
|
||||
console.log('URL:', url);
|
||||
|
||||
try {
|
||||
await sendInvitationEmail(
|
||||
'matt.ciaccio@gmail.com',
|
||||
'Matt Ciaccio',
|
||||
url,
|
||||
'APPLICANT',
|
||||
72
|
||||
);
|
||||
console.log('SUCCESS: Styled invitation email sent!');
|
||||
} catch (err: any) {
|
||||
console.error('FAILED:', err.message || err);
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user