mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
intermediate commit
This commit is contained in:
11
src/app/core/cache/object-cache.effects.ts
vendored
11
src/app/core/cache/object-cache.effects.ts
vendored
@@ -1,5 +1,6 @@
|
||||
import { map } from 'rxjs/operators';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Actions, Effect } from '@ngrx/effects';
|
||||
import { Actions, Effect, ofType } from '@ngrx/effects';
|
||||
|
||||
import { StoreActionTypes } from '../../store.actions';
|
||||
import { ResetObjectCacheTimestampsAction } from './object-cache.actions';
|
||||
@@ -16,9 +17,11 @@ export class ObjectCacheEffects {
|
||||
* time ago, and will likely need to be revisited later
|
||||
*/
|
||||
@Effect() fixTimestampsOnRehydrate = this.actions$
|
||||
.ofType(StoreActionTypes.REHYDRATE)
|
||||
.map(() => new ResetObjectCacheTimestampsAction(new Date().getTime()));
|
||||
.pipe(ofType(StoreActionTypes.REHYDRATE),
|
||||
map(() => new ResetObjectCacheTimestampsAction(new Date().getTime()))
|
||||
);
|
||||
|
||||
constructor(private actions$: Actions) { }
|
||||
constructor(private actions$: Actions) {
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user