Fix backwards logic preventing thread creation!

This commit is contained in:
Ben Gotow 2016-06-30 11:04:51 -07:00
parent a1419a65a5
commit 4d4a4cec32

View file

@ -246,7 +246,7 @@ class FetchMessagesInFolder {
Message.find({where: {hash}})
.then((existing) => {
created = existing != null;
created = !existing;
return existing ? existing.update(values) : Message.create(values);
})
.then((message) =>