Skip to content

Commit c44f8c0

Browse files
committed
feat: TT-184 Slack nick name send a personal message to users
1 parent bd85f10 commit c44f8c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

AutomaticClockOuts/clock_out.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const doClockOut = async (context) => {
1111
context.log(`I am going to check how many entries were not clocked out ${new Date()}`);
1212

1313
const { endpoint, key, databaseId } = config;
14-
const client = new CosmosClient({ endpoint, key});
14+
const client = new CosmosClient({ endpoint, key });
1515
const database = client.database(databaseId);
1616
const container = database.container('time_entry');
1717
const timeEntryDao = new TimeEntryDao(database);
@@ -57,4 +57,6 @@ const findSlackUserId = (users, email) => {
5757
return user ? user.id : null
5858
}
5959

60+
doClockOut(console)
61+
6062
module.exports = { doClockOut };

nodejs-functions/src/handlers/automatic-clock-outs/clock_out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const doClockOut = async (context) => {
1111
context.log(`I am going to check how many entries were not clocked out ${new Date()}`);
1212

1313
const { endpoint, key, databaseId } = config;
14-
const client = new CosmosClient({ endpoint, key});
14+
const client = new CosmosClient({ endpoint, key });
1515
const database = client.database(databaseId);
1616
const container = database.container('time_entry');
1717
const timeEntryDao = new TimeEntryDao(database);

0 commit comments

Comments
 (0)