update version + logger
platform/multy-stub/pipeline/head This commit looks good

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-12-21 00:05:12 +03:00
parent 2356259823
commit 5d08c4c1c2
8 changed files with 1888 additions and 1360 deletions
+2 -2
View File
@@ -10,6 +10,7 @@ const folderPath = path.resolve(__dirname, './routers')
const folders = fs.readdirSync(folderPath)
router.get('/', async (req, res) => {
// throw new Error('check error message')
res.send(`
<h1>multy stub is working v${pkg.version}</h1>
<ul>
@@ -19,8 +20,7 @@ router.get('/', async (req, res) => {
<h2>models</h2>
<ul>${
(await Promise.all(
(
await mongoose.modelNames()).map(async (name) => {
(await mongoose.modelNames()).map(async (name) => {
const count = await mongoose.model(name).countDocuments()
return `<li>${name} - ${count}</li>`
}