Skip to content

Commit

Permalink
GitLab: fix last modified date type
Browse files Browse the repository at this point in the history
Should be a string, not Date object.
  • Loading branch information
chasecaleb committed Oct 31, 2021
1 parent 4f0d14d commit b843322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sync_backend_clients/gitlab_sync_backend_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ export default (oauthClient) => {
// two.
const committed = new Date(body.committed_date);
const authored = new Date(body.authored_date);
return committed > authored ? committed : authored;
// Use Date objects for comparison, but need to return as strings.
return committed > authored ? committed.toISOString() : authored.toISOString();
};

const getFileContentsAndMetadata = async (path) => {
Expand Down

0 comments on commit b843322

Please sign in to comment.