From 385d6301a34831a6ca280d9b18d4b882e72cf5fb Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 29 Mar 2018 18:50:24 -0500 Subject: [PATCH] Only update time for get_channel --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cr b/src/helpers.cr index a26bb310..f8c7af05 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -506,7 +506,7 @@ def get_channel(id, client, db) args = arg_array(channel_array) db.exec("INSERT INTO channels VALUES (#{args}) \ - ON CONFLICT (id) DO UPDATE SET author = $2, updated = $3", channel_array) + ON CONFLICT (id) DO UPDATE SET updated = $3", channel_array) end else channel = fetch_channel(id, client, db)