Fix job processor interfaces

This commit is contained in:
Akihiko Odaki 2018-04-03 02:09:50 +09:00
parent 45fb451111
commit 63906af5ab
4 changed files with 19 additions and 25 deletions

View file

@ -1,6 +1,5 @@
import User from '../../models/user';
import act from '../../remote/activitypub/act';
export default ({ data }, done) => User.findOne({ _id: data.actor })
.then(actor => act(actor, data.outbox, false))
.then(() => done(), done);
export default ({ data }) => User.findOne({ _id: data.actor })
.then(actor => act(actor, data.outbox, false));