File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
api/src/unraid-api/graph/resolvers/array Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,19 @@ import {
1313 ArrayStateInputState ,
1414} from '@app/graphql/generated/api/types.js' ;
1515import { getters } from '@app/store/index.js' ;
16+ import { arrayIsRunning as arrayIsRunningUtil } from '@app/core/utils/index.js' ;
1617
1718@Injectable ( )
1819export class ArrayService {
1920 private pendingState : ArrayPendingState | null = null ;
2021
2122 /**
2223 * Is the array running?
24+ * @todo Refactor this to include this util in the service directly
2325 */
24- arrayIsRunning = ( ) => {
25- const emhttp = getters . emhttp ( ) ;
26- return emhttp . var . mdState === ArrayState . STARTED ;
27- } ;
26+ private arrayIsRunning ( ) {
27+ return arrayIsRunningUtil ( ) ;
28+ }
2829
2930 async updateArrayState ( { desiredState } : ArrayStateInput ) : Promise < ArrayType > {
3031 const startState = this . arrayIsRunning ( ) ? ArrayState . STARTED : ArrayState . STOPPED ;
You can’t perform that action at this time.
0 commit comments