From 9e5ad66a9d2e29547c84309753161b4d4f2860c5 Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Sun, 10 May 2020 04:53:49 -0400 Subject: [PATCH] Added scaffolding for custom paths in subscriptions --- backend/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index e2f44a2..014cd41 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1083,7 +1083,7 @@ function registerFileDB(file_path, type, multiUserMode = null) { if (multiUserMode) { auth_api.registerUserFile(multiUserMode.user, file_object, type); - } else { + } else if (type === 'audio' || type === 'video') { // remove existing video if overwriting db.get(`files.${type}`) .remove({ @@ -1093,6 +1093,8 @@ function registerFileDB(file_path, type, multiUserMode = null) { db.get(`files.${type}`) .push(file_object) .write(); + } else if (type == 'subscription') { + } return file_object['uid'];