diff --git a/backend/authentication/auth.js b/backend/authentication/auth.js index e5f04ec..442d7fa 100644 --- a/backend/authentication/auth.js +++ b/backend/authentication/auth.js @@ -536,14 +536,8 @@ function generateUserObject(userid, username, hash, auth_method = 'internal') { name: username, uid: userid, passhash: auth_method === 'internal' ? hash : null, - files: { - audio: [], - video: [] - }, - playlists: { - audio: [], - video: [] - }, + files: [], + playlists: [], subscriptions: [], created: Date.now(), role: userid === 'admin' && auth_method === 'internal' ? 'admin' : 'user',