AW-5036 404../api/v1/items/xxx:USER_SETTINGS (new environ)
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter Bastiani 2023-05-08 09:12:37 +02:00
parent 7c06343909
commit 945d88839f
2 changed files with 3 additions and 4 deletions

View File

@ -126,7 +126,7 @@ export class InitUserSettingsRoot implements Action {
export class InitUserSettingsRootSuccess implements Action {
readonly type = INITUSERSETTINGSROOTSUCCESS;
constructor(public item: IItem ) { }
constructor(public item: IListItem ) { }
}
export class InitRoot implements Action {

View File

@ -85,9 +85,8 @@ export class AppCommonEffects {
initUserSettingsRoot$ = createEffect(() => this.actions$.pipe(
ofType(appCommonActions.INITUSERSETTINGSROOT),
withLatestFrom(this.store$.select(appCommonReducers.SelectGetUser)),
switchMap(([, user]) => {
return this.itemService$.getItem(user.code + ':USER_SETTINGS').pipe(
switchMap(_ => {
return this.folderService$.getFolder('my_settings').pipe(
switchMap((item) => of(new appCommonActions.InitUserSettingsRootSuccess(item))),
catchError(error => of(new appCommonActions.Fail(error)))
)