online users

This commit is contained in:
sky
2025-09-07 16:29:24 -04:00
parent bcda82b065
commit 36bb49aa80
5 changed files with 9 additions and 18 deletions

View File

@ -241,9 +241,7 @@ async function editProfile(body, token, admin) {
"X-Authentication": process.env.PROCESSING_SERVER_SECRET
}
});
console.log("created request");
let oggFile = await fetch(request);
console.log("finished request");
let filePath = `/data/${userData.id}/${crypto.randomUUID()}.ogg`;
await Bun.write(process.env.DATA_PATH + filePath, oggFile);
const updateAccount = accs.query(`UPDATE accounts SET music = $music WHERE username = $user`)
@ -252,7 +250,6 @@ async function editProfile(body, token, admin) {
name: body.title,
artist: body.artist
}), $user: user });
console.log("database");
}
return { success: true };