From ed7bc81c001eebd7ebdfb322a35bab378f059574 Mon Sep 17 00:00:00 2001 From: richard-loafle <44828666+richard-loafle@users.noreply.github.com> Date: Fri, 3 Apr 2020 11:46:48 +0900 Subject: [PATCH] bug fixed --- package-lock.json | 4 ++-- package.json | 2 +- projects/store-authentication/package.json | 2 +- .../src/lib/store/authorization/reducers.ts | 16 ++++++++++++++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3126eb3..8e46a03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2373,8 +2373,8 @@ "dev": true }, "@ucap/ng-store-authentication": { - "version": "file:pack/ucap-ng-store-authentication-0.0.5.tgz", - "integrity": "sha512-ee4f9YqzCpmBu5YG9wnQXVtplkQwnG6IJaPHhwt8tXayW90PVq1Yxtn3SOOxNp/xCubTuSfJPo/kwcOF67bKug==" + "version": "file:pack/ucap-ng-store-authentication-0.0.6.tgz", + "integrity": "sha512-qP3+rsni/z/JOTR/VPjH+09buvHphJc4IHMSS+HlAFvJPeLcWXWChANzpUG3tWNxEbrh8GhaOlzYkGyqBJTVLA==" }, "@ucap/ng-store-chat": { "version": "file:pack/ucap-ng-store-chat-0.0.4.tgz", diff --git a/package.json b/package.json index a2f8b2e..751d597 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,7 @@ "@ucap/ng-protocol-status": "file:pack/ucap-ng-protocol-status-0.0.1.tgz", "@ucap/ng-protocol-sync": "file:pack/ucap-ng-protocol-sync-0.0.1.tgz", "@ucap/ng-protocol-umg": "file:pack/ucap-ng-protocol-umg-0.0.1.tgz", - "@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.5.tgz", + "@ucap/ng-store-authentication": "file:pack/ucap-ng-store-authentication-0.0.6.tgz", "@ucap/ng-store-chat": "file:pack/ucap-ng-store-chat-0.0.4.tgz", "@ucap/ng-store-group": "file:pack/ucap-ng-store-group-0.0.5.tgz", "@ucap/ng-store-organization": "file:pack/ucap-ng-store-organization-0.0.3.tgz", diff --git a/projects/store-authentication/package.json b/projects/store-authentication/package.json index 77e6aff..c7a8ccd 100644 --- a/projects/store-authentication/package.json +++ b/projects/store-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@ucap/ng-store-authentication", - "version": "0.0.5", + "version": "0.0.6", "publishConfig": { "registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/" }, diff --git a/projects/store-authentication/src/lib/store/authorization/reducers.ts b/projects/store-authentication/src/lib/store/authorization/reducers.ts index 0efbe73..481c3ca 100644 --- a/projects/store-authentication/src/lib/store/authorization/reducers.ts +++ b/projects/store-authentication/src/lib/store/authorization/reducers.ts @@ -1,14 +1,26 @@ import { createReducer, on } from '@ngrx/store'; import { initialState } from './state'; -import { authSuccess } from './actions'; +import { authSuccess, regViewSuccess } from './actions'; export const reducer = createReducer( initialState, on(authSuccess, (state, action) => { return { ...state, - auth: action.res + authResponse: { + ...state.authResponse, + ...action.res + } + }; + }), + on(regViewSuccess, (state, action) => { + return { + ...state, + regViewResponse: { + ...state.regViewResponse, + ...action.res + } }; }) );