@dbos-inc/koa-serve 3.0.8-preview.g493d2d1c2b → 3.0.11-preview.gc9233b8190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/koa-serve",
3
- "version": "3.0.8-preview.g493d2d1c2b",
3
+ "version": "3.0.11-preview.gc9233b8190",
4
4
  "description": "DBOS HTTP Package for serving workflows with Koa",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/dboshttp.ts CHANGED
@@ -178,7 +178,7 @@ export class DBOSHTTPBase extends DBOSLifecycleCallback {
178
178
  for (const e of eps) {
179
179
  const { methodConfig, methodReg } = e;
180
180
  const httpmethod = methodConfig as DBOSHTTPMethodInfo;
181
- for (const ro of httpmethod.registrations ?? []) {
181
+ for (const ro of httpmethod?.registrations ?? []) {
182
182
  if (ro.apiURL) {
183
183
  DBOS.logger.info(' ' + ro.apiType.padEnd(6) + ' : ' + ro.apiURL);
184
184
  const roles = methodReg.getRequiredRoles();