Skip to content

Commit

Permalink
fix slackOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
ca7alindev committed Sep 25, 2024
1 parent e0676b9 commit 94a4a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
resultText, _ := xr.Resource.GetString("spec.messages.result")

if checkDueOrderTimeAndVoteCount(xr, currentTimestamp, users) {
if !d {
if d {
f.log.Info("Poll is done")
} else {
xr.Resource.SetBool("status.done", true)
slackchannel.SlackOrder(input, api, xr, f.log, resultText)
}
Expand Down

0 comments on commit 94a4a5c

Please sign in to comment.