webhooks: do not crash when expire is NULL This is currently not possible to create a webhook without an expiry date. But the SQL database schema does not forbid it. If in the future we would like to allow webhooks to be created without an expiry date, we shouldn't crash when fetching them. Check for the validity of the Expiry field before checking its value. If it is nil, assume that the webhooks has no expiry date. Signed-off-by: Robin Jarry <robin@jarry.cc>
1 files changed, 1 insertions(+), 1 deletions(-) M webhooks/queue.go
M webhooks/queue.go => webhooks/queue.go +1 -1