From d2ebdf39582b15ac9f54b01ca813e8cd2ce31f34 Mon Sep 17 00:00:00 2001 From: db Date: Fri, 27 Mar 2026 17:49:59 -0500 Subject: [PATCH] WIP --- server/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/app.js b/server/app.js index 9a2d8a934..95ec132b0 100644 --- a/server/app.js +++ b/server/app.js @@ -12,7 +12,7 @@ import _ from 'lodash'; import jwt from 'jwt-simple'; import express from 'express'; import config from './config.js'; -import path from 'path'; +import path from 'path'; import fs from 'fs-extra'; import api from './homebrew.api.js'; @@ -447,7 +447,7 @@ export default async function createApp(vite) { })); - const shareEmbedCommon = async(req)=>{ + const shareEmbedCommon = async(req, res)=>{ const { brew } = req; req.ogMeta = { ...defaultMetaTags, @@ -475,13 +475,13 @@ export default async function createApp(vite) { //Share Page app.get('/share/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{ - shareEmbedCommon(req); + shareEmbedCommon(req,res); return next(); })); //Embed Page - More work will be done on this later... app.get('/embed/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{ - shareEmbedCommon(req); + shareEmbedCommon(req,res); return next(); }));