Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
feat: TT-184 Slack nick name send a personal message to users
  • Loading branch information
LEON12699 committed Mar 18, 2021
commit c44f8c07cb632510c25171e236cd8c98dc82c188
4 changes: 3 additions & 1 deletion AutomaticClockOuts/clock_out.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const doClockOut = async (context) => {
context.log(`I am going to check how many entries were not clocked out ${new Date()}`);

const { endpoint, key, databaseId } = config;
const client = new CosmosClient({ endpoint, key});
const client = new CosmosClient({ endpoint, key });
const database = client.database(databaseId);
const container = database.container('time_entry');
const timeEntryDao = new TimeEntryDao(database);
Expand Down Expand Up @@ -57,4 +57,6 @@ const findSlackUserId = (users, email) => {
return user ? user.id : null
}

doClockOut(console)

module.exports = { doClockOut };
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const doClockOut = async (context) => {
context.log(`I am going to check how many entries were not clocked out ${new Date()}`);

const { endpoint, key, databaseId } = config;
const client = new CosmosClient({ endpoint, key});
const client = new CosmosClient({ endpoint, key });
const database = client.database(databaseId);
const container = database.container('time_entry');
const timeEntryDao = new TimeEntryDao(database);
Expand Down