Skip to main content

hbf-lcm Gotchas

Package-specific pitfalls and non-obvious patterns. Loaded automatically by workflow commands.

Bugs (Known)

  • Swagger version bug (HAP-79): src/main.ts:30 calls .setVersion(process.env.npm_package_name) instead of npm_package_version. Swagger shows package name, not version number.
  • Monitor timezone bug (HAP-50): monitor.service.ts compares UTC new Date() against MySQL startDate which stores local time (UTC+3 in production). The timeDiff calculation produces a 3-hour offset, causing conversations to be auto-terminated ~9 seconds after creation instead of after the configured expiration. Workaround: set MONITOR_ENABLED=false during local dev testing.