@peopl-health/nexus 2.1.0 → 2.1.1

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.
@@ -88,7 +88,8 @@ const listAssistantController = async (req, res) => {
88
88
  const nodeEnv = process.env.NODE_ENV;
89
89
  const airtableStatus = nodeEnv === 'production' ? 'prod' :
90
90
  nodeEnv === 'development' ? 'dev' : nodeEnv;
91
- const tableName = process.env.VARIANT === 'responses' ? 'prompts' : 'assistants';
91
+
92
+ const tableName = process.env.VARIANT;
92
93
  const assistants = await getRecordByFilter(Config_ID, tableName, `status="${airtableStatus}"`);
93
94
  return res.status(200).send({ message: 'List assistants' , assistants});
94
95
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",