;(function () { if (!context?.user?.auth()?.id) { console.log(context?.user?.auth()?.id) //TODO: productInsideOrder(context.data) look in post } /** @type {ProductRating} */ // @ts-ignore let ratingObj = context.db.find("rating", { filter: { _id: context.data.id, }, })[0] context["oldRating"] = ratingObj.rating })()