From 204616a2d8562279e84de8c64bb47a1931638049 Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 26 Oct 2025 14:20:56 -0400 Subject: [PATCH] fix --- accounts/profile.js | 1 + pm2.config.cjs | 2 +- start.cjs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 start.cjs diff --git a/accounts/profile.js b/accounts/profile.js index 2cd7f7c..7435ab1 100755 --- a/accounts/profile.js +++ b/accounts/profile.js @@ -271,6 +271,7 @@ async function generateAccountPage(name, cookie, admin) { } let modifiedHTML = rawProfileHTML; + console.log(userData.music); let songData = JSON.parse(userData.music) || false; modifiedHTML = modifiedHTML.replaceAll("{{ name }}", sanitizeHtml(userData.name, allowNone)); modifiedHTML = modifiedHTML.replaceAll("{{ join_date }}", dayjs(userData.createdAt).fromNow()); diff --git a/pm2.config.cjs b/pm2.config.cjs index 461b794..272f698 100755 --- a/pm2.config.cjs +++ b/pm2.config.cjs @@ -1,6 +1,6 @@ module.exports = { name: "Selenite", // Name of your application - script: "index.js", // Entry point of your application + script: "start.cjs", // Entry point of your application interpreter: "bun", // Path to the Bun interpreter watch: true, cron_restart: '0 0 * * *', diff --git a/start.cjs b/start.cjs new file mode 100644 index 0000000..8e2a8c7 --- /dev/null +++ b/start.cjs @@ -0,0 +1 @@ +import('./index.js'); \ No newline at end of file