Optimize this code:

export const fetchPosts = async ({ postType = null, pageNr = 1, limit = 12 }: FetchPostsParams = {}): Promise<FetchPosts> => {
    const where = postType ? { postType: { equals: postType } } : {};

    const result = await payload.find({
        collection: 'posts',
        where,
        depth: 2,
        page: pageNr,
        limit,
        sort: '-publishedDate',
    });

    return result;
}; Provide two versions of response separated with exactly 6 asterisk symbols: ******.
user