File tree 4 files changed +6
-7
lines changed
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ export class TaskService {
939
939
}
940
940
941
941
async getArchivedTasks ( ) : Promise < Task [ ] > {
942
- const archiveTaskState : TaskArchive = await this . _taskArchiveService . load ( true ) ;
942
+ const archiveTaskState : TaskArchive = await this . _taskArchiveService . load ( ) ;
943
943
const ids = ( archiveTaskState && ( archiveTaskState . ids as string [ ] ) ) || [ ] ;
944
944
const archiveTasks = ids . map ( ( id ) => archiveTaskState . entities [ id ] ) as Task [ ] ;
945
945
return archiveTasks ;
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ export class TaskArchiveService {
26
26
27
27
constructor ( ) { }
28
28
29
- async load ( isSkipMigration = false ) : Promise < TaskArchive > {
29
+ async load ( ) : Promise < TaskArchive > {
30
30
// NOTE: these are already saved in memory to speed up things
31
31
const [ archiveYoung , archiveOld ] = await Promise . all ( [
32
- this . _pfapiService . m . archiveYoung . load ( isSkipMigration ) ,
33
- this . _pfapiService . m . archiveOld . load ( isSkipMigration ) ,
32
+ this . _pfapiService . m . archiveYoung . load ( ) ,
33
+ this . _pfapiService . m . archiveOld . load ( ) ,
34
34
] ) ;
35
35
36
36
return {
Original file line number Diff line number Diff line change @@ -90,10 +90,9 @@ export class ModelCtrl<MT extends ModelBase> {
90
90
// TODO implement isSkipMigration
91
91
/**
92
92
* Loads model data from memory cache or database
93
- * @param isSkipMigration Whether to skip migration (if applicable)
94
93
* @returns Promise resolving to model data
95
94
*/
96
- async load ( isSkipMigration ?: boolean ) : Promise < MT > {
95
+ async load ( ) : Promise < MT > {
97
96
pfLog ( 3 , `${ ModelCtrl . name } .${ this . load . name } ()` , {
98
97
inMemoryData : this . _inMemoryData ,
99
98
} ) ;
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export const PFAPI_MODEL_CFGS: PfapiAllModelCfg = {
100
100
} ,
101
101
102
102
project : {
103
- modelVersion : 1 ,
103
+ modelVersion : 1.2 ,
104
104
defaultData : initialProjectState ,
105
105
isMainFileModel : true ,
106
106
validate : appDataValidators . project ,
You can’t perform that action at this time.
0 commit comments