Fixed DB migration for tables with no docs

concurrent-streams-and-player-refactor
Isaac Abadi 4 years ago
parent a7d349a71a
commit a810628f15

@ -873,6 +873,7 @@ exports.importJSONToDB = async (db_json, users_json) => {
let success = true;
for (let i = 0; i < table_keys.length; i++) {
const table_key = table_keys[i];
if (!tables_obj[table_key] || tables_obj[table_key].length === 0) continue;
success &= await exports.insertRecordsIntoTable(table_key, tables_obj[table_key]);
}

Loading…
Cancel
Save