[client-sync] Correctly pass path when processing bodies

Summary: see title

Test Plan: manual

Reviewers: mark

Differential Revision: https://phab.nylas.com/D4447
This commit is contained in:
Juan Tejada 2017-04-17 22:36:32 -07:00
parent daf7f9ec6f
commit d407699a44

View file

@ -33,7 +33,7 @@ export function pathForBodyFile(msgId) {
remainingId = remainingId.substring(2);
}
const bodyPath = path.join(...pathGroups);
return path.join(baseMessagePath, bodyPath, `${remainingId}.${FILE_EXTENSION}`);
return path.join(baseMessagePath(), bodyPath, `${remainingId}.${FILE_EXTENSION}`);
}
// NB: The return value of this function is what gets written into the database.