Skip to content

Commit eb7afc9

Browse files
committed
release(game-data-sdk): v1.0.11
1 parent 9715887 commit eb7afc9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/game-data-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@earthworm/game-data-sdk",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": "",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/game-data-sdk/src/course-pack/course-pack.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface Course {
88
title: string;
99
description: string;
1010
statements: Statement[];
11+
learningContent: string;
1112
}
1213

1314
export interface CreateCoursePack {

packages/game-data-sdk/src/course-pack/course-pack.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export async function createCoursePack(coursePackInfo: CreateCoursePack) {
3636
order: cIndex + 1,
3737
title: course.title,
3838
description: course.description,
39+
learningContent: course.learningContent,
3940
})
4041
.returning({
4142
id: courseSchema.id,
@@ -154,6 +155,7 @@ export async function updateCoursePack(coursePackId: string, coursePackInfo: Upd
154155
title: newCourseInfo.title,
155156
description: newCourseInfo.description,
156157
order: newCourseIndex + 1,
158+
learningContent: newCourseInfo.learningContent,
157159
})
158160
.where(eq(courseSchema.id, newCourseInfo.publishCourseId));
159161

@@ -170,6 +172,7 @@ export async function updateCoursePack(coursePackId: string, coursePackInfo: Upd
170172
description: newCourseInfo.description,
171173
order: newCourseIndex + 1,
172174
coursePackId: coursePackId,
175+
learningContent: newCourseInfo.learningContent,
173176
})
174177
.returning({
175178
id: courseSchema.id,

0 commit comments

Comments
 (0)