-
Notifications
You must be signed in to change notification settings - Fork 5
Recruiter migrate v1 #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Recruiter map[string]interface{} `json:"recruiter" binding:"required"` // Adjust type as needed | ||
| } | ||
|
|
||
| var InitialGroupIDs = []string{"645afd0cfec4439851def4de"} // You can move this to constants if needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use environment variable
|
|
||
| type CreateRecruiterAndCompanyRequest struct { | ||
| Company model.Company `json:"company" binding:"required"` | ||
| Recruiter map[string]interface{} `json:"recruiter" binding:"required"` // Adjust type as needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove LLM comments
|
|
||
| var InitialGroupIDs = []string{"645afd0cfec4439851def4de"} // You can move this to constants if needed | ||
|
|
||
| func batchConvertToObjectID(sArray []string) ([]primitive.ObjectID, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this to utils
| recruiterObj["isActive"] = true | ||
| recruiterObj["company"] = companyID | ||
|
|
||
| groups, err := batchConvertToObjectID([]string{"645afd0cfec4439851def4de"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this to environment variable
No description provided.