Fix open articles in the TTY, as it is broken while in the demo. And

Added YouTube OnBoarding to the App (Currently in testing and this is
the beta branch :) Oh also updated some more stuff as well!
This commit is contained in:
yuanhau 2025-06-10 22:52:10 +08:00
parent 378689da87
commit 3d392dd788
5 changed files with 54 additions and 36 deletions

View file

@ -2,7 +2,7 @@ import sql from "~/server/components/postgres";
import getUserTokenMinusSQLInjection from "~/server/components/getUserToken";
export default defineEventHandler(async (event) => {
// Check user data.
const user = getUserTokenMinusSQLInjection(event);
const user = await getUserTokenMinusSQLInjection(event);
if (user.error.length !== 0) {
return {
error: user.error,