SalesCandy Git archive
admin-api
Provides backend APIs for SalesCandy administration.
README
This repository provides backend APIs for SalesCandy administration. It requires serverless, postgres, node, and postgres to be installed globally. Use `npm install` after cloning to set up dependencies and run tests.
The API manages core administrative functions for SalesCandy. Inputs typically involve standard API requests (e.g., tenant data). Outputs are structured JSON responses detailing the requested administrative state changes.
Selected files and folders
README.mdhandlerspackage.jsonserverless.yml
Reconstructed issues
Summaries inferred from the archive. Original issue records are unavailable here.
Tenant creation fails after WhatsApp threshold move
The process of creating new tenants was failing. This was due to the `waMsgThreshold` column being relocated from the `tenants` table to the `tenantSettings` table, causing schema mismatch errors during write operations.
Tenant read/write breaks after WhatsApp threshold move
Operations to retrieve and update existing tenant records were failing. The root cause was the schema change where `waMsgThreshold` moved from the `tenants` table to `tenantSettings`, requiring updates to data access logic.
User name handling for special characters
The system was unable to correctly process user names containing characters like dots or apostrophes (e.g., "K. O'Hara"). This change updated validation and handling to allow these characters in names.
Selected commits
-
Bugfix
Reza Rosli ·
fde936f4085086abfde945263deda342d30ca7cc -
Bugfix
Reza Rosli ·
2db194abf9cde6fbd3979218a90d44ef9b4ee38a -
Bugfix: Fix creating tenants which broke because waMsgThreshold column was moved from tenants table to tenantSettings table
Reza Rosli ·
0011b68de6b43b6851b0d13a4064e6b7cec1d61d -
Remove console.log
Reza Rosli ·
c27505a1c5acda43851a32699941849cf44d86fc -
Bugfix: Fix getting and updating tenants which broke because waMsgThreshold column was moved from tenants table to tenantSettings table
Reza Rosli ·
3f18c27fab48661ba8386f16b543cc9dfd4ff134 -
Add name for CloudFormation template
Reza Rosli ·
78e36acac6e082936b7d6f37e4be61eef5045271 -
Allow users with names containing dot "." and quote marks ' e.g. "K. O'Hara"
Reza Rosli ·
77d31cc1ab44850cf5049d67ba6e885e485b5847 -
up
ibrahim ·
fd3c0c09b4d7946ba9b649c50e7962277e2fc6dd -
change countries from array to string for db
Shoaib ·
b2ecabd3b78b7a1d58bc86c03da583bfd7a38363 -
update func to include update and delete wa template
ibrahim ·
626dd31474c29caf3ca072b84d258bf916dacd4b -
minor fixes for input
Shoaib ·
98871a10a4b3dc443fc0c70247a2f57bef985022 -
added new module for whatsapp message templates (half cooked)
Shoaib ·
436bcb4b0bb777a10cb44c8d5d8cc9cc117fcc2e -
remove attaching default fields for new tenants, now sc-form will get from the candybase directly.
Shoaib ·
bbd183985b620c07a5d39100e380d329c8cc0aa6 -
bugFix: - mark user as salesperson for being created as super manager
Shoaib ·
de107e4586ca26a10073c535ac8b8d40c7fbb39c -
Add renovate.json
Renovate Bot ·
9246341a600981a047e22344e156d1e18701f432 -
bugFix: - mark user as salesperson for being created as super manager
Shoaib ·
5230531a8b68bf58212b9df0a2b7e19b44de5ad4 -
basic crud operations for - users - projects - usersTeams - projectTeams - accounts
Shoaib ·
5044604802dd721ed2f830d0603864c7b18b3932 -
Init commit
Rasikh Mashhadi ·
f539df352349cff6f80a08e3aeccea09b190137e -
removed extra dependencies, not needed for now
Rasikh Mashhadi ·
d302b8ac5de3b3bd386a97720f60f6925d2725e2 -
remove comments and added plugin
Shoaib ·
4cdb1edf0006a04ce5f6d4e9a366e5a104465200 -
Cognito pools added
Rasikh Mashhadi ·
342ee874ce7afbeb9a98e20e6cba49e8e6ae75b9