mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-27 11:12:28 +01:00
* Reorganized files, reduced function size, reduced duplication * Refactored amazon tests organization * Reduced duplication * Reorganized paypal tests * Reorganized stripe tests * Fixed lint issues * Fixed gem purchase expectations * Added cloning so we don't modify the common block
8 lines
239 B
JavaScript
8 lines
239 B
JavaScript
import { model as User } from '../../../../../../website/server/models/user';
|
|
|
|
export async function createNonLeaderGroupMember (group) {
|
|
let nonLeader = new User();
|
|
nonLeader.guilds.push(group._id);
|
|
return await nonLeader.save();
|
|
}
|