File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class tasks {
130130 time : Math . ceil ( time )
131131 } ) ;
132132
133- frame . write ( ) ;
133+ frame . write ( true ) ;
134134 resolve ( ) ;
135135 } )
136136 . catch ( error => reject ( error ) ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class frame extends BaseFrame {
3232 /**
3333 * write data to file
3434 */
35- write ( ) {
35+ write ( skipModified ) {
3636 if ( fs . existsSync ( this . file ) ) fs . unlinkSync ( this . file ) ;
3737 fs . appendFileSync ( this . file , JSON . stringify ( {
3838 id : this . id ,
@@ -42,7 +42,7 @@ class frame extends BaseFrame {
4242 start : this . _start ,
4343 stop : this . _stop ,
4444 timezone : this . timezone ,
45- modified : moment ( )
45+ modified : skipModified ? this . modified : moment ( )
4646 } , null , "\t" ) ) ;
4747 }
4848
You can’t perform that action at this time.
0 commit comments