Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ async function createAttachment(
const response = await updateServerRequest(
documentCreateURL,
formData,
config,
attachments,
data.ID
config
);
return response;
}
Expand Down
1 change: 0 additions & 1 deletion lib/sdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,5 @@ module.exports = class SDMAttachmentsService extends (
entity,
this.deleteAttachmentsWithKeys.bind(this)
);
return;
}
};
4 changes: 2 additions & 2 deletions lib/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ async function generateSDMBearerToken(credentials, jwt) {
});
}
function isTokenExpired(exp) {
var expiry = new Date(exp * 1000);
var now = new Date();
const expiry = new Date(exp * 1000);
const now = new Date();
return now > expiry;
}
function decodeAccessToken(jwtEncoded) {
Expand Down