Skip to content

Commit

Permalink
release(game-data-sdk): v1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Aug 19, 2024
1 parent 9715887 commit eb7afc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/game-data-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@earthworm/game-data-sdk",
"version": "1.0.10",
"version": "1.0.11",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface Course {
title: string;
description: string;
statements: Statement[];
learningContent: string;
}

export interface CreateCoursePack {
Expand Down
3 changes: 3 additions & 0 deletions packages/game-data-sdk/src/course-pack/course-pack.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export async function createCoursePack(coursePackInfo: CreateCoursePack) {
order: cIndex + 1,
title: course.title,
description: course.description,
learningContent: course.learningContent,
})
.returning({
id: courseSchema.id,
Expand Down Expand Up @@ -154,6 +155,7 @@ export async function updateCoursePack(coursePackId: string, coursePackInfo: Upd
title: newCourseInfo.title,
description: newCourseInfo.description,
order: newCourseIndex + 1,
learningContent: newCourseInfo.learningContent,
})
.where(eq(courseSchema.id, newCourseInfo.publishCourseId));

Expand All @@ -170,6 +172,7 @@ export async function updateCoursePack(coursePackId: string, coursePackInfo: Upd
description: newCourseInfo.description,
order: newCourseIndex + 1,
coursePackId: coursePackId,
learningContent: newCourseInfo.learningContent,
})
.returning({
id: courseSchema.id,
Expand Down

0 comments on commit eb7afc9

Please sign in to comment.