Forgot to store actor in the apex.store

This commit is contained in:
Niko 2022-02-09 02:39:06 +01:00
parent 7246b38a3d
commit a22f8a352b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module.exports = {
if (actor === null)
actor = await apex.createActor(req.body.username, req.body.username, '', null)
if (actor !== null) {
if (actor !== null && await apex.store.saveObject(actor)) {
const documen = await db.table.users().insertOne({
'username': req.body.username,
'email': req.body.email,