@simitgroup/simpleapp-generator 1.0.62 → 1.0.63
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/package.json
CHANGED
|
@@ -156,7 +156,7 @@ export class UserContext {
|
|
|
156
156
|
// console.log("obtainProfileFromDbobtainProfileFromDb ",users)
|
|
157
157
|
if(users && users.length>0){
|
|
158
158
|
const userinfo = users[0]
|
|
159
|
-
|
|
159
|
+
|
|
160
160
|
|
|
161
161
|
if(this.tenantId>0){
|
|
162
162
|
const myperm=userinfo.permissions[0]
|
|
@@ -172,13 +172,13 @@ export class UserContext {
|
|
|
172
172
|
}else{
|
|
173
173
|
userinfo.group = ''
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
|
|
176
176
|
const currentitme = new Date(this.lastActivity).getTime()
|
|
177
|
-
|
|
177
|
+
|
|
178
178
|
const dblastactivity = userinfo.lastActivity ?? '2000-01-01T00:00:00Z'
|
|
179
179
|
const lastvisit = new Date( dblastactivity).getTime() ?? 0
|
|
180
180
|
// if(currentitme - lastvisit)
|
|
181
|
-
|
|
181
|
+
|
|
182
182
|
|
|
183
183
|
//update last activtity dont too frequent
|
|
184
184
|
if(!dblastactivity || currentitme - lastvisit > 5000 ){
|