Commit 21177bec authored by marioromera's avatar marioromera
Browse files

return getRevision to how it was

parent 5e80a75a
......@@ -123,15 +123,11 @@ async function getRevisions() {
const response = await fetch(
`${etherpadUrl}/api/1/getRevisionsCount?apikey=${etherpadApiKey}&padID=${PAD_ID}`
).catch(e => {
logger.warn('Connection error', e);
});
);
const etherpadJson = response.json();
if (!etherpadJson.data) {
logger.warn('No revisions found');
return
logger.warn('No revisions found', etherpadJson);
}
return etherpadJson.data;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment