diff --git a/lib/constructs/business/rest-api-service.ts b/lib/constructs/business/rest-api-service.ts index f74e8341d..1b0bd1c0a 100644 --- a/lib/constructs/business/rest-api-service.ts +++ b/lib/constructs/business/rest-api-service.ts @@ -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', @@ -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', }, ); diff --git a/lib/constructs/persistence/database.ts b/lib/constructs/persistence/database.ts index a54119ca6..1870a28dd 100644 --- a/lib/constructs/persistence/database.ts +++ b/lib/constructs/persistence/database.ts @@ -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,