From d407699a445aa14d658db1895d9a97dacc92a135 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 17 Apr 2017 22:36:32 -0700 Subject: [PATCH] [client-sync] Correctly pass path when processing bodies Summary: see title Test Plan: manual Reviewers: mark Differential Revision: https://phab.nylas.com/D4447 --- packages/isomorphic-core/src/message-body-utils.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/isomorphic-core/src/message-body-utils.es6 b/packages/isomorphic-core/src/message-body-utils.es6 index 556bbd1d4..6eeaf1d9e 100644 --- a/packages/isomorphic-core/src/message-body-utils.es6 +++ b/packages/isomorphic-core/src/message-body-utils.es6 @@ -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.