Moved eveything related to the api to a seperate folder seasoned_api.
This commit is contained in:
7
seasoned_api/src/plex/stream/convertStreamToUser.js
Normal file
7
seasoned_api/src/plex/stream/convertStreamToUser.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const User = require('src/media_classes/user');
|
||||
|
||||
function convertStreamToUser(plexStream) {
|
||||
return new User(plexStream.id, plexStream.title);
|
||||
}
|
||||
|
||||
module.exports = convertStreamToUser;
|
||||
Reference in New Issue
Block a user