diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index aceb0c5..e3a1239 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -113,9 +113,14 @@ class BoxController extends BaseController { if (chestsForUser.length === 0) { const newChest = generateNewChest(uid, user.activity, 1, ChestStatusEnum.LOCKED) await newChest.save() - } - return { - score, + return { + score: 0, + chests: [newChest.toJson()], + } + } else { + return { + score: 0, + } } }