mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
add population to challenge.group, challenge.leader and group.leader
This commit is contained in:
@@ -113,7 +113,7 @@ export async function createAndPopulateGroup (settings = {}) {
|
||||
// optional details argument for the initial challenge creation and an
|
||||
// optional update argument which will update the challenge via the db
|
||||
export async function generateChallenge (challengeCreator, group, details = {}, update = {}) {
|
||||
details.groupId = group._id;
|
||||
details.group = group._id;
|
||||
details.name = details.name || 'a challenge';
|
||||
details.shortName = details.shortName || 'aChallenge';
|
||||
details.prize = details.prize || 0;
|
||||
|
||||
Reference in New Issue
Block a user