Skip to content

Commit e616fbd

Browse files
liuliquanrakibansary
liuliquan
andauthored
feat: add skills to challenge (#66)
* fix: save markup Signed-off-by: Rakib Ansary <rakibansary@topcoder.com> * feat: add skills to challenge --------- Signed-off-by: Rakib Ansary <rakibansary@topcoder.com> Co-authored-by: Rakib Ansary <rakibansary@topcoder.com>
1 parent 2144b84 commit e616fbd

File tree

9 files changed

+351
-34
lines changed

9 files changed

+351
-34
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"@aws-sdk/util-utf8-node": "^3.259.0",
2424
"@grpc/grpc-js": "^1.7.1",
2525
"@opensearch-project/opensearch": "^2.2.0",
26-
"@topcoder-framework/domain-acl": "^0.22.0",
27-
"@topcoder-framework/lib-common": "^0.22.0",
28-
"topcoder-interface": "github:topcoder-platform/plat-interface-definition#v0.0.58-beta-1",
26+
"@topcoder-framework/domain-acl": "^0.23.1-PLAT-3614.0",
27+
"@topcoder-framework/lib-common": "^0.23.1-PLAT-3614.0",
28+
"topcoder-interface": "0.1.0-PLAT-3614.1",
2929
"@types/uuid": "^9.0.1",
3030
"aws-sdk": "^2.1339.0",
3131
"axios": "^1.2.2",

src/dal/models/nosql/google/protobuf/struct.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import _m0 from "protobufjs/minimal";
55
* `NullValue` is a singleton enumeration to represent the null value for the
66
* `Value` type union.
77
*
8-
* The JSON representation for `NullValue` is JSON `null`.
8+
* The JSON representation for `NullValue` is JSON `null`.
99
*/
1010
export enum NullValue {
1111
/** NULL_VALUE - Null value. */

src/domain/Challenge.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ChallengeDomain extends CoreOperations<Challenge, CreateChallengeInput> {
7676
typeId: string,
7777
tags: string[],
7878
metadata: Metadata = new Metadata(),
79-
id: string = "",
79+
id: string = ""
8080
) {
8181
let legacyChallengeId: number | null = null;
8282

@@ -242,6 +242,7 @@ class ChallengeDomain extends CoreOperations<Challenge, CreateChallengeInput> {
242242
attachments: input.attachmentUpdate != null ? input.attachmentUpdate.attachments : challenge!.attachments,
243243
groups: input.groupUpdate != null ? input.groupUpdate.groups : challenge!.groups,
244244
discussions: input.discussionUpdate != null ? input.discussionUpdate.discussions : challenge!.discussions,
245+
skills: input.skillUpdate != null ? input.skillUpdate.skills : challenge!.skills,
245246
};
246247

247248
// prettier-ignore
@@ -330,6 +331,7 @@ class ChallengeDomain extends CoreOperations<Challenge, CreateChallengeInput> {
330331
} : undefined,
331332
legacyId: legacyId != null ? legacyId : undefined,
332333
constraints: input.constraints != null ? input.constraints : undefined,
334+
skills: input.skillUpdate != null ? input.skillUpdate.skills : undefined,
333335
},
334336
metadata
335337
);

0 commit comments

Comments
 (0)