1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-17 21:44:05 +00:00

Use new loading interface for collection indexes

This commit is contained in:
2023-06-26 21:09:28 +02:00
parent 9acb89205d
commit efcc78e3bb
3 changed files with 13 additions and 6 deletions

View File

@ -162,12 +162,10 @@ async function refresh() {
};
collection.getIndexes = async function() {
const progress = startProgress(`Retrieving indexes of "${collKey}"…`);
collection.indexes = [];
const { indexes, error } = await GetIndexes(hostKey, dbKey, collKey);
if (error) {
progress.end();
return error;
}
@ -187,8 +185,6 @@ async function refresh() {
collection.indexes.push(index);
}
progress.end();
};
collection.getIndexByName = function(indesName) {