Skip to content

Commit

Permalink
feat: exporting value for career (#358)
Browse files Browse the repository at this point in the history
* feat: exporting value for carreer

* fix: changing authro to author in get comments lambda
  • Loading branch information
JasonNotJson authored Oct 18, 2023
1 parent b3fa671 commit 4affad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/stacks/persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export class WasedaTimePersistenceLayer extends PersistenceLayer {
DataEndpoint.CAREER,
dynamoDatabase.tables[Collection.CAREER].tableName,
);
this.exportValue(dynamoDatabase.tables[Collection.CAREER].tableName);
this.exportValue(dynamoDatabase.tables[Collection.CAREER].tableArn);
this.dataInterface.setEndpoint(
DataEndpoint.TIMETABLE,
dynamoDatabase.tables[Collection.TIMETABLE].tableName,
Expand Down
3 changes: 2 additions & 1 deletion src/lambda/get-comments/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ def get_comments(thread_id, uid=""):
if r["uid"] == uid:
r["mod"] = True
del r["uid"]
r["authro"] = uid_encoder(uid)
r["author"] = uid_encoder(uid)

body = JsonPayloadBuilder().add_status(
True).add_data(results).add_message('').compile()
return body


def handler(event, context):
params = {
"thread_id": event["pathParameters"]["thread_id"],
Expand Down

0 comments on commit 4affad7

Please sign in to comment.