Created
October 24, 2017 11:34
-
-
Save rasmushjulskov/a10dd406bd22c698fba7a1848a09b3ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class Process { | |
| constructor({ connector }: { connector: ConnectorType }) { | |
| this.connector = connector; | |
| } | |
| connector: ConnectorType; | |
| async editProcess({ | |
| processId, | |
| title, | |
| }: { | |
| processId: string, | |
| title: string, | |
| }) { | |
| const activity = await this.connector.update({ | |
| TableName: 'process', | |
| Key: { | |
| id: processId, | |
| }, | |
| UpdateExpression: 'set title = :title', | |
| ExpressionAttributeValues: { | |
| ':title': title, | |
| }, | |
| }); | |
| return activity; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment