Skip to content

Commit

Permalink
Update attachments.js
Browse files Browse the repository at this point in the history
  • Loading branch information
utanapishtim authored Aug 12, 2024
1 parent ade3127 commit ce9b32b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/mixins/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ export default {

/** check two embedded file metadata objects for equality */
function isEqual(a, b) {
const result = (
return (
a.Subtype === b.Subtype &&
a.Params.CheckSum.toString() === b.Params.CheckSum.toString() &&
a.Params.Size === b.Params.Size &&
a.Params.CreationDate.toISOString() === b.Params.CreationDate.toISOString() &&
a.Params.ModDate.toISOString() === b.Params.ModDate.toISOString()
a.Params.CreationDate.getTime() === b.Params.CreationDate.getTime() &&
a.Params.ModDate.getTime() === b.Params.ModDate.getTime()
);
console.log('isEqual', result);
return result;
}

0 comments on commit ce9b32b

Please sign in to comment.