-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dac4202
commit 1c0354c
Showing
2 changed files
with
2 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,69 +10,7 @@ const seedDeleteTrainee = async () => { | |
return; | ||
} | ||
|
||
const deleteTrainee = [ | ||
{ | ||
email: '[email protected]', | ||
firstName: 'Ben', | ||
lastName: 'iraa', | ||
deleted_at: false, | ||
cycle_id: cycle._id, | ||
coverLetterUrl: "http://example.com/coverLetter.pdf", | ||
idDocumentUrl: "http://example.com/idDocument.pdf", | ||
resumeUrl: "http://example.com/resume.pdf" | ||
|
||
}, | ||
{ | ||
email: '[email protected]', | ||
firstName: 'Test', | ||
lastName: 'user', | ||
deleted_at: false, | ||
cycle_id: cycle._id, | ||
coverLetterUrl: "http://example.com/coverLetter.pdf", | ||
idDocumentUrl: "http://example.com/idDocument.pdf", | ||
resumeUrl: "http://example.com/resume.pdf" | ||
|
||
|
||
}, | ||
{ | ||
email: '[email protected]', | ||
firstName: 'iradukunda', | ||
lastName: 'benjamin', | ||
deleted_at: false, | ||
cycle_id: cycle._id, | ||
coverLetterUrl: "http://example.com/coverLetter.pdf", | ||
idDocumentUrl: "http://example.com/idDocument.pdf", | ||
resumeUrl: "http://example.com/resume.pdf" | ||
|
||
|
||
}, | ||
{ | ||
email: '[email protected]', | ||
firstName: 'carlos', | ||
lastName: 'Bz', | ||
deleted_at: false, | ||
cycle_id: cycle._id, | ||
coverLetterUrl: "http://example.com/coverLetter.pdf", | ||
idDocumentUrl: "http://example.com/idDocument.pdf", | ||
resumeUrl: "http://example.com/resume.pdf" | ||
|
||
|
||
}, | ||
{ | ||
email: '[email protected]', | ||
firstName: 'blaise', | ||
lastName: 'k', | ||
deleted_at: false, | ||
cycle_id: cycle._id, | ||
coverLetterUrl: "http://example.com/coverLetter.pdf", | ||
idDocumentUrl: "http://example.com/idDocument.pdf", | ||
resumeUrl: "http://example.com/resume.pdf" | ||
|
||
|
||
}, | ||
]; | ||
await TraineeApplicant.deleteMany({ deleteTrainee }); | ||
await TraineeApplicant.insertMany(deleteTrainee); | ||
await TraineeApplicant.deleteMany({}); | ||
await traineEAttributes.deleteMany({}); | ||
return null; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,21 +24,6 @@ const seedUsers = async () => { | |
} | ||
|
||
const users = [ | ||
{ | ||
firstname: "John", | ||
lastname: "Trainee", | ||
email: "[email protected]", | ||
password: await BcryptUtil.hash("password123"), | ||
role: traineeRole._id, | ||
country: "Rwanda", | ||
code: "+250", | ||
telephone: "0788888887", | ||
isActive: true, | ||
gender: "male", | ||
cohort: cohort._id, | ||
applicationPhase: "Admitted", | ||
isVerified: true, | ||
}, | ||
{ | ||
firstname: "Super", | ||
lastname: "Admin", | ||
|
@@ -51,35 +36,7 @@ const seedUsers = async () => { | |
isActive: true, | ||
gender: "female", | ||
isVerified: true, | ||
}, | ||
{ | ||
firstname: "Manzi", | ||
lastname: "Jean", | ||
email: "[email protected]", | ||
password: await BcryptUtil.hash("password123"), | ||
role: applicantRole._id, | ||
country: "Rwanda", | ||
code: "+250", | ||
telephone: "0788888889", | ||
isActive: true, | ||
gender: "male", | ||
applicationPhase: "Applied", | ||
cohort: cohort._id, | ||
isVerified: true, | ||
}, | ||
{ | ||
firstname: "Jane", | ||
lastname: "Doe", | ||
email: "[email protected]", | ||
password: await BcryptUtil.hash("password123"), | ||
role: applicantRole._id, | ||
country: "Rwanda", | ||
code: "+250", | ||
telephone: "0788888888", | ||
isActive: true, | ||
isVerified: true, | ||
gender: "male", | ||
}, | ||
} | ||
]; | ||
await LoggedUserModel.deleteMany({ users }); | ||
await LoggedUserModel.insertMany(users); | ||
|