Remove changes to messages transform

This commit is contained in:
James Long 2022-06-26 17:10:49 -04:00
parent 4874b53c7c
commit b9e1e6030f

View file

@ -15,7 +15,7 @@ const sync = sequential(async function syncAPI(messages, since, fileId) {
await actual.internal.send('load-budget', { id: fileId });
}
const messagesDeserialized = messages.map(envPb => {
messages = messages.map(envPb => {
let timestamp = envPb.getTimestamp();
let msg = SyncPb.Message.deserializeBinary(envPb.getContent());
return {
@ -27,7 +27,7 @@ const sync = sequential(async function syncAPI(messages, since, fileId) {
};
});
const newMessages = await actual.internal.syncAndReceiveMessages(messagesDeserialized, since);
const newMessages = await actual.internal.syncAndReceiveMessages(messages, since);
return {
trie: actual.internal.timestamp.getClock().merkle,