express-api-base/services/example.js

13 lines
249 B
JavaScript
Raw Normal View History

2024-06-28 09:20:46 +00:00
'use strict'
// Dependencies
const { logMessage } = require("../lib/logger");
// Main
const run = async () => {
// Test
logMessage('example', 'Service is running')
setTimeout(run, 5 * 60 * 1000); // Wait 5 minutes
}
module.exports = { run }