AW-5036 404../api/v1/items/xxx:USER_SETTINGS (new environ)
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
7c06343909
commit
945d88839f
@ -126,7 +126,7 @@ export class InitUserSettingsRoot implements Action {
|
|||||||
export class InitUserSettingsRootSuccess implements Action {
|
export class InitUserSettingsRootSuccess implements Action {
|
||||||
readonly type = INITUSERSETTINGSROOTSUCCESS;
|
readonly type = INITUSERSETTINGSROOTSUCCESS;
|
||||||
|
|
||||||
constructor(public item: IItem ) { }
|
constructor(public item: IListItem ) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
export class InitRoot implements Action {
|
export class InitRoot implements Action {
|
||||||
|
@ -85,9 +85,8 @@ export class AppCommonEffects {
|
|||||||
|
|
||||||
initUserSettingsRoot$ = createEffect(() => this.actions$.pipe(
|
initUserSettingsRoot$ = createEffect(() => this.actions$.pipe(
|
||||||
ofType(appCommonActions.INITUSERSETTINGSROOT),
|
ofType(appCommonActions.INITUSERSETTINGSROOT),
|
||||||
withLatestFrom(this.store$.select(appCommonReducers.SelectGetUser)),
|
switchMap(_ => {
|
||||||
switchMap(([, user]) => {
|
return this.folderService$.getFolder('my_settings').pipe(
|
||||||
return this.itemService$.getItem(user.code + ':USER_SETTINGS').pipe(
|
|
||||||
switchMap((item) => of(new appCommonActions.InitUserSettingsRootSuccess(item))),
|
switchMap((item) => of(new appCommonActions.InitUserSettingsRootSuccess(item))),
|
||||||
catchError(error => of(new appCommonActions.Fail(error)))
|
catchError(error => of(new appCommonActions.Fail(error)))
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user