File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -59,24 +59,6 @@ export class ConnectionStorage extends Storage {
5959 return this . set ( SERVERCOMPONENT_KEY , name ) ;
6060 }
6161
62- /**
63- * Eventually we will want to remove this function, but for now we need to fix the past queries
64- */
65- fixPastQueries ( ) {
66- const currentList = this . getPastQueries ( ) as ( string | QueryHistoryItem ) [ ] ;
67- const hasOldFormat = currentList . some ( item => typeof item === `string` ) ;
68- if ( hasOldFormat ) {
69- const newList = currentList . map ( item => {
70- if ( typeof item === `string` ) {
71- return { query : item , unix : Math . floor ( Date . now ( ) / 1000 ) - 86400 } ;
72- } else {
73- return item ;
74- }
75- } ) ;
76- return this . setPastQueries ( newList ) ;
77- }
78- }
79-
8062 getPastQueries ( ) {
8163 return this . get < QueryList > ( QUERIES_KEY ) || [ ] ;
8264 }
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ export async function onConnectOrServerInstall(): Promise<boolean> {
1919
2020 Config . setConnectionName ( instance . getConnection ( ) . currentConnectionName ) ;
2121
22- await Config . fixPastQueries ( ) ;
23-
2422 osDetail = new IBMiDetail ( ) ;
2523
2624 await osDetail . fetchSystemInfo ( ) ;
You can’t perform that action at this time.
0 commit comments