Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt2106_2024_03_frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scrum_Team_3
idatt2106_2024_03_frontend
Commits
dd37579f
Commit
dd37579f
authored
1 year ago
by
Torbjørn Antonsen
Browse files
Options
Downloads
Plain Diff
Merge branch '27-update-frontend-post-to-puts-where-applicable' into 'master'
Resolve "Update frontend post to puts where applicable" Closes
#27
See merge request
!41
parents
a0fbd856
8da3b91d
No related branches found
Branches containing commit
No related tags found
1 merge request
!41
Resolve "Update frontend post to puts where applicable"
Pipeline
#279179
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/profileutils.ts
+4
-4
4 additions, 4 deletions
src/utils/profileutils.ts
with
4 additions
and
4 deletions
src/utils/profileutils.ts
+
4
−
4
View file @
dd37579f
...
...
@@ -162,7 +162,7 @@ export const updateUserInfo = async (
'
email
'
:
email
,
'
profilePictureBase64
'
:
profilePictureBase64
};
return
await
axios
.
p
os
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
return
await
axios
.
p
u
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
}
catch
(
error
){
console
.
error
(
error
)
throw
error
;
...
...
@@ -184,7 +184,7 @@ export const updatePasswordInfo = async (
'
password
'
:
currentPassword
,
'
newPassword
'
:
newPassword
};
return
await
axios
.
p
os
t
(
'
http://localhost:8080/userCredentials/updatePassword
'
,
data
,
config
);
return
await
axios
.
p
u
t
(
'
http://localhost:8080/userCredentials/updatePassword
'
,
data
,
config
);
}
catch
(
error
){
console
.
error
(
error
)
throw
error
;
...
...
@@ -205,7 +205,7 @@ export const updateBankAccountInfo = async (
'
currentAccount
'
:
checkingAccount
,
'
savingAccount
'
:
savingAccount
};
return
await
axios
.
p
os
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
return
await
axios
.
p
u
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
}
catch
(
error
){
console
.
error
(
error
)
throw
error
;
...
...
@@ -229,7 +229,7 @@ export const updateIncomeInfo = async (
'
monthlyFixedExpenses
'
:
monthlyFixedExpenses
,
'
monthlySavings
'
:
monthlySavings
};
return
await
axios
.
p
os
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
return
await
axios
.
p
u
t
(
'
http://localhost:8080/users/update
'
,
data
,
config
);
}
catch
(
error
){
console
.
error
(
error
)
throw
error
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment