From e39091025cad7abaca6109ebd4feade99c1edcc2 Mon Sep 17 00:00:00 2001 From: Mohammed Al-Safwan <124410228+MohammedAlSafwan@users.noreply.github.com> Date: Sat, 6 May 2023 17:21:43 -0400 Subject: [PATCH] Update index.js BugFix - pick user model choice. There is no `req.model`, you need to pick the first in the list from the `req.models` array --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ea1cf3a..d4445a3 100644 --- a/index.js +++ b/index.js @@ -216,7 +216,7 @@ class Dalai { return } - let [Core, Model] = req.model.split(".") + let [Core, Model] = req.models[0].split(".") Model = Model.toUpperCase() console.log( { Core, Model } )