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