Skip to content

Commit

Permalink
Merge pull request #78 from transform1234/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ankush-maherwal authored Nov 25, 2024
2 parents 1a664a5 + 75bfe6c commit 162c826
Show file tree
Hide file tree
Showing 12 changed files with 753 additions and 56 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-develop-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#It is deploying on server 15.206.144.84 For Dev Environment only please note.
name: Deploy to DEV
on:
name: Deploy to DEV
on:
push:
branches:
- develop
Expand Down
3 changes: 3 additions & 0 deletions src/adapters/diksha/dikshaCourse.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ export class DikshaCourseService implements IServicelocator {
`/api/content/v1/read/${value}?fields=transcripts,ageGroup,appIcon,artifactUrl,attributions,attributions,audience,author,badgeAssertions,board,body,channel,code,concepts,contentCredits,contentType,contributors,copyright,copyrightYear,createdBy,createdOn,creator,creators,description,displayScore,domain,editorState,flagReasons,flaggedBy,flags,framework,gradeLevel,identifier,itemSetPreviewUrl,keywords,language,languageCode,lastUpdatedOn,license,mediaType,medium,mimeType,name,originData,osId,owner,pkgVersion,publisher,questions,resourceType,scoreDisplayConfig,status,streamingUrl,subject,template,templateId,totalQuestions,totalScore,versionKey,visibility,year,primaryCategory,additionalCategories,interceptionPoints,interceptionType&licenseDetails=name,description,url`,
};

console.log("config", config)

const response = await axios(config);
const data = response?.data;

Expand Down Expand Up @@ -150,6 +152,7 @@ export class DikshaCourseService implements IServicelocator {
}

public async getCourseHierarchy(value: any, type: any) {
console.log("value", value)
var axios = require("axios");
if (type == "assessment") {
let config = {
Expand Down
5 changes: 3 additions & 2 deletions src/adapters/hasura/altBulkUploadStudent.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import { ALTStudentService } from "./altStudent.adapter";
import { getPassword, getToken } from "./adapter.utils";
import { ErrorResponse } from "src/error-response";
import { SuccessResponse } from "src/success-response";
import { ALTHasuraUserService } from "./altUser.adapter";
@Injectable()
export class ALTBulkUploadStudentService {
constructor(
private httpService: HttpService,
private studentService: ALTStudentService,
private groupMembershipService: GroupMembershipService,
private groupService: HasuraGroupService
private groupService: HasuraGroupService,
private altUserService: ALTHasuraUserService
) {}

public async createStudents(
Expand Down Expand Up @@ -48,7 +50,6 @@ export class ALTBulkUploadStudentService {
try {
for (const student of bulkStudentDto.students) {
student.groups = [];
student.password = getPassword(8);
student.status = true;
const studentRes: any = await this.studentService.createAndAddToGroup(
request,
Expand Down
Loading

0 comments on commit 162c826

Please sign in to comment.