fix to working state

This commit is contained in:
2023-07-11 18:51:34 +02:00
parent 5ea8502caf
commit 915e49352f
4 changed files with 269 additions and 4 deletions

View File

@ -3,7 +3,6 @@ import path from 'path'
import type { RequestHandler } from '@sveltejs/kit';
import { BEARER_TOKEN } from '$env/static/private'
import { error } from '@sveltejs/kit';
import { Image } from '../../../../models/Image';
import { IMAGE_DIR } from '$env/static/private'
import sharp from 'sharp';

View File

@ -5,7 +5,7 @@ import { dbConnect, dbDisconnect } from '../../../../utils/db';
export const GET: RequestHandler = async ({params}) => {
await dbConnect();
let found_brief = (await Recipe.find({}, 'name short_name images tags category icon description season').lean()) as BriefRecipeType[];
let found_brief = (await Recipe.find({}, 'name short_name tags category icon description season').lean()) as BriefRecipeType[];
await dbDisconnect();
return json(JSON.parse(JSON.stringify(found_brief)));
};