Skip to content

Commit

Permalink
Apply feedback from plugin review
Browse files Browse the repository at this point in the history
  • Loading branch information
Talal-A committed Dec 31, 2024
1 parent 9aeaa67 commit bc3dc52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function getExistingShareLink(settings: PluginSettings, documentId: string
}
})

for (var item of result.json) {
for (let item of result.json) {
if (item['expiration'] == null) {
return new URL(settings.paperlessUrl + '/share/' + item['slug']);
}
Expand All @@ -132,7 +132,7 @@ async function createShareLink(settings: PluginSettings, documentId: string) {
}

async function getShareLink(settings: PluginSettings, documentId: string) {
var link = await getExistingShareLink(settings, documentId);
let link = await getExistingShareLink(settings, documentId);
if (!link) {
createShareLink(settings, documentId);
link = await getExistingShareLink(settings, documentId);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "paperless",
"name": "Paperless",
"version": "0.0.7",
"version": "0.0.8",
"minAppVersion": "0.15.0",
"description": "Link your paperless-ngx documents within your vault.",
"author": "Talal Abou Haiba",
Expand Down

0 comments on commit bc3dc52

Please sign in to comment.