mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58:54 -05:00
posprocessing hook for DRF
This commit is contained in:
@@ -30,8 +30,8 @@ export default defineComponent({
|
||||
testApi: function () {
|
||||
const api = new ApiApi()
|
||||
api.apiMealPlanList().then(r => {
|
||||
if (r.length > 0) {
|
||||
api.apiMealPlanUpdate({id: r[0].id, mealPlan: r[0]})
|
||||
if (r.length > 0 && r[0].id != undefined) {
|
||||
api.apiMealPlanUpdate({id: r[0].id, mealPlanRequest: r[0]})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user