mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-14 10:47:12 -07:00
fix(backend): 🐛 Fix CI/CD Linting Failures
This commit is contained in:
parent
abb0b84e22
commit
d1a7ec3b95
15 changed files with 48 additions and 37 deletions
|
@ -1,6 +1,6 @@
|
|||
import { BaseCRUDAPI } from "./_base";
|
||||
import { Recipe } from "~/types/api-types/admin";
|
||||
import { CreateRecipe } from "~/types/api-types/recipe";
|
||||
import { Recipe , CreateRecipe } from "~/types/api-types/recipe";
|
||||
|
||||
|
||||
const prefix = "/api";
|
||||
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { useAsync, ref } from "@nuxtjs/composition-api";
|
||||
import {set } from "@vueuse/core"
|
||||
import { useAsyncKey } from "./use-utils";
|
||||
import { useApiSingleton } from "~/composables/use-api";
|
||||
import { Recipe } from "~/types/api-types/recipe";
|
||||
|
@ -29,7 +30,8 @@ export const useRecipes = (all = false, fetchRecipes = true) => {
|
|||
async function refreshRecipes() {
|
||||
const { data } = await api.recipes.getAll(start, end);
|
||||
if (data) {
|
||||
recipes.value = data;
|
||||
set(recipes, data);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ import RecipeNotes from "~/components/Domain/Recipe/RecipeNotes.vue";
|
|||
import RecipeImageUploadBtn from "~/components/Domain/Recipe/RecipeImageUploadBtn.vue";
|
||||
import RecipeSettingsMenu from "~/components/Domain/Recipe/RecipeSettingsMenu.vue";
|
||||
import RecipeIngredientEditor from "~/components/Domain/Recipe/RecipeIngredientEditor.vue";
|
||||
import { Recipe } from "~/types/api-types/admin";
|
||||
import { Recipe } from "~/types/api-types/recipe";
|
||||
import { useStaticRoutes } from "~/composables/api";
|
||||
|
||||
export default defineComponent({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue