Update various configuration files, components, and assets; enhance notification system and API endpoints; improve documentation and styles across the application.
This commit is contained in:
14
server/plugins/queueProcessor.js
Normal file
14
server/plugins/queueProcessor.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { startQueueProcessor, stopQueueProcessor } from '../utils/queueProcessor';
|
||||
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
console.log('📦 Initializing notification queue processor plugin...');
|
||||
|
||||
// Start the queue processor when the server starts
|
||||
startQueueProcessor();
|
||||
|
||||
// Optional: Stop gracefully on server shutdown
|
||||
nitroApp.hooks.hook('close', () => {
|
||||
console.log('🛑 Shutting down queue processor...');
|
||||
stopQueueProcessor();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user