Skip to content

Instantly share code, notes, and snippets.

@rasmushjulskov
Created October 24, 2017 11:34
Show Gist options
  • Select an option

  • Save rasmushjulskov/a10dd406bd22c698fba7a1848a09b3ca to your computer and use it in GitHub Desktop.

Select an option

Save rasmushjulskov/a10dd406bd22c698fba7a1848a09b3ca to your computer and use it in GitHub Desktop.
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