Skip to content

Commit

Permalink
Merge pull request #50 from dicdiksha/dev
Browse files Browse the repository at this point in the history
reverted changes for location update
  • Loading branch information
TejaswiniGiram19 authored Oct 26, 2023
2 parents 33a1b55 + 376b4aa commit 7212648
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export class OtpComponent implements OnInit {
};
createRequest.request['location'] = locationInfo;
createRequest.request['reqData'] = _.get(data, 'reqData');
console.log("createUser---",JSON.stringify(createRequest));
if (this.otpForm.controls.tncAccepted.value && this.otpForm.controls.tncAccepted.status === 'VALID') {
this.signupService.createUserV3(createRequest).subscribe((resp: ServerResponse) => {
if(resp.responseCode=== 'OK' && resp.result.userId) {
Expand All @@ -236,11 +235,8 @@ export class OtpComponent implements OnInit {
firstName: createRequest.request.firstName

};
console.log("payload---",JSON.stringify(payload));
this.locationService.updateProfile(payload).toPromise()
.then((res) => {
console.log("locUpdate res---", JSON.stringify(res));
// this.registerSubmit.emit(_.get(result, 'value'));
this.toasterService.success(this.resourceService?.messages?.smsg?.m0057);
}).catch((err) => {
console.log("Error for location selection", err);
Expand Down

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { TelemetryModule } from '@sunbird/telemetry';
import { SharedModule } from '@sunbird/shared';
import { SharedFeatureModule } from '@sunbird/shared-feature';
import { LocationModule, LocationService } from '../../../../plugins/location';
import { TestLocationComponent } from './components/test-location/test-location.component';

@NgModule({
imports: [
Expand All @@ -25,7 +24,7 @@ import { TestLocationComponent } from './components/test-location/test-location.
SharedFeatureModule,
LocationModule
],
declarations: [SignupComponent, OtpComponent, SignupBasicInfoComponent, SignupOnboardingInfoComponent, SignupEmailPasswordComponent, TestLocationComponent],
declarations: [SignupComponent, OtpComponent, SignupBasicInfoComponent, SignupOnboardingInfoComponent, SignupEmailPasswordComponent],
providers: [SignupService, LocationService]
})
export class SignupModule { }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Routes, RouterModule } from '@angular/router';
import { LandingPageComponent } from './components';
import { LandingpageGuard } from './services';
import { OfflineApplicationDownloadComponent } from '@sunbird/shared';
import { TestLocationComponent } from './module/signup/components/test-location/test-location.component';

const routes: Routes = [
{
Expand Down Expand Up @@ -42,9 +41,7 @@ const routes: Routes = [
},
{
path: 'guest-profile', loadChildren: () => import('./module/guest-profile/guest-profile.module').then(m => m.GuestProfileModule)
},
{
path: 'test-location', component: TestLocationComponent, }
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
Expand Down
8 changes: 4 additions & 4 deletions src/app/helpers/whitelistApis.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,10 @@ const API_LIST = {
checksNeeded: ['ROLE_CHECK'],
ROLE_CHECK: [ROLE.ALL]
},
// '/learner/user/v3/update': {
// checksNeeded: ['ROLE_CHECK'],
// ROLE_CHECK: [ROLE.PUBLIC]
// },
'/learner/user/v3/update': {
checksNeeded: ['ROLE_CHECK'],
ROLE_CHECK: [ROLE.PUBLIC]
},
'/learner/user/v1/get': {
checksNeeded: ['ROLE_CHECK'],
ROLE_CHECK: [ROLE.PUBLIC]
Expand Down
2 changes: 1 addition & 1 deletion src/app/routes/clientRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = (app, keycloak) => {
'/explore/*', '/:slug/explore', '/:slug/explore/*', '/exploren/*', '/:slug/exploren', '/:slug/exploren*', '/play/*', '/:slug/play/*', '/explore-course', '/explore-course/*',
'/:slug/explore-course', '/:slug/explore-course/*', '/:slug/signup', '/signup', '/:slug/sign-in/*',
'/sign-in/*', '/download/*', '/accountMerge/*','/:slug/accountMerge/*', '/:slug/download/*', '/certs/*', '/:slug/certs/*', '/recover/*', '/:slug/recover/*', '/explore-groups',
'/guest-profile', '/:slug/test-location', '/test-location',],
'/guest-profile'],
session({
secret: envHelper.PORTAL_SESSION_SECRET_KEY,
resave: false,
Expand Down

0 comments on commit 7212648

Please sign in to comment.