mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 03:39:43 +09:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
@@ -16,10 +16,12 @@
|
||||
const handleSaveProfile = async () => {
|
||||
try {
|
||||
const { data } = await api.userApi.updateUser({
|
||||
id: user.id,
|
||||
email: user.email,
|
||||
firstName: user.firstName,
|
||||
lastName: user.lastName
|
||||
updateUserDto: {
|
||||
id: user.id,
|
||||
email: user.email,
|
||||
firstName: user.firstName,
|
||||
lastName: user.lastName
|
||||
}
|
||||
});
|
||||
|
||||
Object.assign(user, data);
|
||||
|
||||
Reference in New Issue
Block a user