@homeworksenergy/utility-service 1.0.22 → 1.0.23
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.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -140,6 +140,11 @@ const getEventTypeForDepartment = (department, state = 'MA') => {
|
|
|
140
140
|
return `${stateId}${departmentId}%`;
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
+
const isHWEUser = (user)=>{
|
|
144
|
+
const { company } = user;
|
|
145
|
+
return company?.toLowerCase()?.includes('hwe') || false;
|
|
146
|
+
}
|
|
147
|
+
|
|
143
148
|
module.exports = {
|
|
144
149
|
decodeEventType,
|
|
145
150
|
getHweCode,
|
|
@@ -152,4 +157,5 @@ module.exports = {
|
|
|
152
157
|
addStartEndTimesToEvents,
|
|
153
158
|
getStartEndTimesForEvent,
|
|
154
159
|
getDatabaseInsertSlots,
|
|
160
|
+
isHWEUser
|
|
155
161
|
};
|