1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

fix(backend): 🐛 Fix CI/CD Linting Failures

This commit is contained in:
hay-kot 2021-08-23 15:33:39 -08:00
parent abb0b84e22
commit d1a7ec3b95
15 changed files with 48 additions and 37 deletions

View file

@ -108,6 +108,7 @@ export default defineComponent({
});
async function updateUser() {
// @ts-ignore
const { response } = await api.users.updateOne(userCopy.value.id, userCopy.value);
if (response?.status === 200) {
context.emit(events.REFRESH);
@ -151,17 +152,22 @@ export default defineComponent({
// }
// },
async changePassword() {
// @ts-ignore
this.paswordLoading = true;
const data = {
currentPassword: this.password.current,
newPassword: this.password.newOne,
};
// @ts-ignore
if (this.$refs.passChange.validate()) {
// @ts-ignore
if (await api.users.changePassword(this.user.id, data)) {
this.$emit("refresh");
}
}
// @ts-ignore
this.paswordLoading = false;
},
},