diff --git a/Public API v1.yaml b/Public API v1.yaml index 951c27d..735cfe7 100644 --- a/Public API v1.yaml +++ b/Public API v1.yaml @@ -2109,8 +2109,6 @@ components: tag: type: string DBInfoResponse: - required: - - db_info type: object properties: using_local_db: @@ -2132,6 +2130,8 @@ components: $ref: '#/components/schemas/TableInfo' download_queue: $ref: '#/components/schemas/TableInfo' + archives: + $ref: '#/components/schemas/TableInfo' TransferDBResponse: required: - success diff --git a/angular.json b/angular.json index 454c39b..8f50ad6 100644 --- a/angular.json +++ b/angular.json @@ -190,5 +190,8 @@ "@schematics/angular:directive": { "prefix": "app" } + }, + "cli": { + "analytics": false } } \ No newline at end of file diff --git a/backend/app.js b/backend/app.js index 3c8e022..2f7ef49 100644 --- a/backend/app.js +++ b/backend/app.js @@ -782,7 +782,7 @@ app.post('/api/restartServer', optionalJwt, (req, res) => { app.get('/api/getDBInfo', optionalJwt, async (req, res) => { const db_info = await db_api.getDBStats(); - res.send({db_info: db_info}); + res.send(db_info); }); app.post('/api/transferDB', optionalJwt, async (req, res) => { @@ -1084,9 +1084,6 @@ app.post('/api/disableSharing', optionalJwt, async function(req, res) { await db_api.updateRecord('files', {uid: uid}, {sharingEnabled: false}) } else if (is_playlist) { await db_api.updateRecord(`playlists`, {id: uid}, {sharingEnabled: false}); - } else if (type === 'subscription') { - // TODO: Implement. Main blocker right now is subscription videos are not stored in the DB, they are searched for every - // time they are requested from the subscription directory. } else { // error success = false; diff --git a/src/app/components/manage-role/manage-role.component.html b/src/app/components/manage-role/manage-role.component.html index 3ace5a5..2e45c17 100644 --- a/src/app/components/manage-role/manage-role.component.html +++ b/src/app/components/manage-role/manage-role.component.html @@ -4,7 +4,7 @@