mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
parent
a460940430
commit
6c6c5ef651
65 changed files with 1913 additions and 491 deletions
|
|
@ -21,11 +21,13 @@
|
|||
try {
|
||||
const { id, email, firstName, lastName, storageLabel } = user;
|
||||
const { status } = await api.userApi.updateUser({
|
||||
id,
|
||||
email,
|
||||
firstName,
|
||||
lastName,
|
||||
storageLabel: storageLabel || ''
|
||||
updateUserDto: {
|
||||
id,
|
||||
email,
|
||||
firstName,
|
||||
lastName,
|
||||
storageLabel: storageLabel || ''
|
||||
}
|
||||
});
|
||||
|
||||
if (status === 200) {
|
||||
|
|
@ -42,9 +44,11 @@
|
|||
const defaultPassword = 'password';
|
||||
|
||||
const { status } = await api.userApi.updateUser({
|
||||
id: user.id,
|
||||
password: defaultPassword,
|
||||
shouldChangePassword: true
|
||||
updateUserDto: {
|
||||
id: user.id,
|
||||
password: defaultPassword,
|
||||
shouldChangePassword: true
|
||||
}
|
||||
});
|
||||
|
||||
if (status == 200) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue