mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	Consolidate frontend types (#1245)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6a88a59981
						
					
				
				
					commit
					479900e912
				
			| @@ -59,7 +59,7 @@ | ||||
| import { defineComponent, computed, toRefs, reactive, useContext } from "@nuxtjs/composition-api"; | ||||
| import { whenever } from "@vueuse/shared"; | ||||
| import { useClipboard, useShare } from "@vueuse/core"; | ||||
| import { RecipeShareToken } from "~/api/class-interfaces/recipes/recipe-share"; | ||||
| import { RecipeShareToken } from "~/types/api-types/recipe"; | ||||
| import { useUserApi } from "~/composables/api"; | ||||
| import { alert } from "~/composables/use-toast"; | ||||
|  | ||||
| @@ -118,7 +118,7 @@ export default defineComponent({ | ||||
|  | ||||
|       const { data } = await userApi.recipes.share.createOne({ | ||||
|         recipeId: props.recipeId, | ||||
|         expiresAt: expirationDate, | ||||
|         expiresAt: expirationDate.toISOString(), | ||||
|       }); | ||||
|  | ||||
|       if (data) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user