online users
This commit is contained in:
@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user