Skip to content
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

feat: user profile api5 #382

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/constructs/business/rest-api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,14 +1252,14 @@ export class ProfileProcessApiService extends RestApiService {
contentType: 'application/json',
description:
'HTTP GET response body schema for fetching user profile.',
modelName: 'GetCommentsResp',
modelName: 'GetProfileResp',
});
const postReqModel = scope.apiEndpoint.addModel('profile-post-req-model', {
schema: userProfilePostReqSchema,
contentType: 'application/json',
description:
'HTTP POST request body schema for submitting a user profile.',
modelName: 'PostCommentReq',
modelName: 'PostProfileReq',
});
const patchReqModel = scope.apiEndpoint.addModel(
'profile-patch-req-model',
Expand All @@ -1268,7 +1268,7 @@ export class ProfileProcessApiService extends RestApiService {
contentType: 'application/json',
description:
'HTTP PATCH request body schema for updating a user profile',
modelName: 'PatchCommentReq',
modelName: 'PatchProfileReq',
},
);

Expand Down
2 changes: 1 addition & 1 deletion lib/constructs/persistence/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DynamoDatabase extends Construct {
'dynamodb-profile-table',
{
partitionKey: { name: 'uid', type: dynamodb.AttributeType.STRING },
sortKey: { name: 'class_of', type: dynamodb.AttributeType.STRING },
sortKey: { name: 'created_at', type: dynamodb.AttributeType.STRING }, // Change sk to created_at
billingMode: dynamodb.BillingMode.PROVISIONED,
encryption: dynamodb.TableEncryption.DEFAULT,
removalPolicy: RemovalPolicy.RETAIN,
Expand Down
Loading