@b2y/ecommerce-common 1.2.3 → 1.2.4

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.
@@ -171,7 +171,12 @@ return async (req, res) => {
171
171
  // Update tenant settings
172
172
  const updatePayload = {};
173
173
  if (ThemeColour !== undefined) updatePayload.ThemeColour = ThemeColour;
174
- updatePayload.UpdatedBy = UpdatedBy;
174
+ if(UpdatedBy) {
175
+ updatePayload.UpdatedBy = UpdatedBy;
176
+ }
177
+ else {
178
+ updatePayload.UpdatedBy = req.user.UserID
179
+ }
175
180
  updatePayload.UpdatedAt = new Date();
176
181
 
177
182
  await existingSettings.update(updatePayload, { transaction });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b2y/ecommerce-common",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "E-commerce common library",
5
5
  "main": "index.js",
6
6
  "scripts": {