From af7379ad4366d8beab54388afa9694755c9075f5 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 7 Jul 2023 20:23:38 +0200 Subject: [PATCH] Fix: user data is created at first connection but not returned. --- src/storage.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage.cr b/src/storage.cr index 67e4fa3..907585b 100644 --- a/src/storage.cr +++ b/src/storage.cr @@ -48,7 +48,8 @@ class DNSManager::Storage user_data = user_data_by_uid.get? user_id.to_s unless user_data Baguette::Log.info "New user #{user_id}" - @user_data << UserData.new user_id + user_data = UserData.new user_id + @user_data << user_data end user_data