@@ -10,7 +10,7 @@ const { ClockOutMessage } = require('./constants');
1010const doClockOut = async ( context ) => {
1111 context . log ( `I am going to check how many entries were not clocked out ${ new Date ( ) } ` ) ;
1212
13- const { endpoint, key, databaseId } = config ;
13+ const { endpoint, key, databaseId } = config ;
1414 const client = new CosmosClient ( { endpoint, key} ) ;
1515 const database = client . database ( databaseId ) ;
1616 const container = database . container ( 'time_entry' ) ;
@@ -30,10 +30,10 @@ const doClockOut = async (context) => {
3030 const timeEntry = new TimeEntry ( timeEntryAsJson )
3131 if ( timeEntry . needsToBeClockedOut ( ) ) {
3232 const user_email = findUserEmail ( users , timeEntry . timeEntry . owner_id ) ;
33- const userId = findSlackUserId ( slackUsers , user_email ) ;
33+ const userId = findSlackUserId ( slackUsers , user_email ) ;
3434 if ( userId ) {
3535 usersWithClockOut . push ( "<@" + userId + ">" ) ;
36- SlackClient . sendMessageToUser ( userId , ClockOutMessage ) ;
36+ SlackClient . sendMessageToUser ( userId , ClockOutMessage ) ;
3737 }
3838 timeEntryAsJson . end_date = timeEntry . getTimeToClockOut ( )
3939 await container . item ( timeEntryAsJson . id , timeEntryAsJson . tenant_id ) . replace ( timeEntryAsJson )
0 commit comments