Skip to content

Commit

Permalink
action: daily user mapping update
Browse files Browse the repository at this point in the history
  • Loading branch information
phongulus committed Mar 25, 2024
1 parent 1d0d8e6 commit a0234e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/action.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ module SlackUsername (Slack_api : Api.Slack) = struct

let rec refresh_username_to_slack_id_tbl_background_lwt ~ctx : unit Lwt.t =
let%lwt () = refresh_username_to_slack_id_tbl ~ctx in
let%lwt () = Lwt_unix.sleep 120. in
(* Updates mapping every 2 minutes *)
let%lwt () = Lwt_unix.sleep 86400. in
(* Updates mapping every 24 hours *)
refresh_username_to_slack_id_tbl_background_lwt ~ctx

let match_github_login_to_slack_id cfg_opt login =
Expand Down

0 comments on commit a0234e5

Please sign in to comment.