File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export class APIService {
170
170
return null ;
171
171
}
172
172
173
- await this . cacheManager . set ( `activity:${ id } ` , JSON . stringify ( response . data ) , 1000 * 60 * 30 ) ;
173
+ await this . cacheManager . set ( `activity:${ id } ` , JSON . stringify ( response . data ) , 1000 * 60 ) ;
174
174
return response . data ;
175
175
}
176
176
}
Original file line number Diff line number Diff line change 28
28
}
29
29
</style >
30
30
<rect width =" 800" height =" {{ height_ }} " style =" fill: #1e1e1e;" />
31
- <rect width =" 685" height =" 40" x =" 115 " style =" fill: #252526;" />
31
+ <rect width =" 685" height =" 40" x =" 107 " style =" fill: #252526;" />
32
32
<rect width =" 1" height =" {{ height }} " x =" 40" y =" 40" style =" fill: #404040;" />
33
33
34
34
<text y =" 60" font-family =" Consolas, monospace" class =" indexes" >
35
35
{{{ indexes }}}
36
36
</text >
37
37
<text y =" 25" class =" filename" font-family =" Segoe WPC, Segoe UI, sans-serif" >
38
- <tspan style =" fill: #ffd700;" font-family =" Consolas, monospace" >{}</tspan > stats .json
38
+ <tspan style =" fill: #ffd700;" font-family =" Consolas, monospace" >{}</tspan > info .json
39
39
</text >
40
40
<text y =" 60" font-family =" Consolas, monospace" class =" main_text" >
41
41
{{{ json }}}
Original file line number Diff line number Diff line change @@ -126,12 +126,13 @@ export class WidgetService {
126
126
file : activity . activities [ 0 ] . file ?? 'Idling' ,
127
127
workplace : activity . activities [ 0 ] . workplace ?? 'No workplace' ,
128
128
duration : this . getTimeDiff ( new Date ( activity . activities [ 0 ] . start_time ) )
129
- } : undefined
129
+ } : undefined ,
130
+ created_by : "AndcoolSystems"
130
131
}
131
132
} catch ( e ) {
132
133
json = {
133
134
status : 'error' ,
134
- message : e
135
+ message : e . message ?? "Unknown error. See server console."
135
136
}
136
137
}
137
138
return this . parserService . parse ( json , 30 ) ;
You can’t perform that action at this time.
0 commit comments