@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
|
-
|
|
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 });
|