|
|
@ -31,9 +31,8 @@ async function loadRevisions(etebase: Etebase.Account, col: Etebase.Collection,
|
|
|
|
let iterator: string | null = null;
|
|
|
|
let iterator: string | null = null;
|
|
|
|
let done = false;
|
|
|
|
let done = false;
|
|
|
|
while (!done) {
|
|
|
|
while (!done) {
|
|
|
|
// FIXME: shouldn't be any
|
|
|
|
const revisions = await itemManager.itemRevisions(item, { iterator, limit: 30 });
|
|
|
|
const revisions: any = await itemManager.itemRevisions(item, { iterator, limit: 30 });
|
|
|
|
iterator = revisions.iterator as string;
|
|
|
|
iterator = revisions.iterator;
|
|
|
|
|
|
|
|
done = revisions.done;
|
|
|
|
done = revisions.done;
|
|
|
|
|
|
|
|
|
|
|
|
for (const item of revisions.data) {
|
|
|
|
for (const item of revisions.data) {
|
|
|
|