Fixed bug where AddLog was not properly adding timestamp
authorAndrew DeFaria <Andrew@DeFaria.com>
Sat, 17 Jul 2021 23:17:54 +0000 (16:17 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Sat, 17 Jul 2021 23:17:54 +0000 (16:17 -0700)
maps/bin/MAPSDB.sql
maps/lib/MAPS.pm

index 1af464b..211334b 100644 (file)
@@ -71,7 +71,7 @@ create table list (
 --            for the null and black lists where one might want to insure that
 --            a particular domain (e.g. @talentburst.com) will never come off
 --            of the nulllist.
---  retention         varchar (40),
+  retention         varchar (40),
   key user_index    (userid),
   key user_listtype (userid, type),
   unique            (userid, type, sequence),
index 0405483..c2069c1 100644 (file)
@@ -306,7 +306,7 @@ sub AddList(%) {
 sub AddLog(%) {
   my (%params) = @_;
 
-  my $timestamp = UnixDatetime2SQLDatetime(scalar(localtime));
+  $params{timestamp} = UnixDatetime2SQLDatetime(scalar(localtime));
 
   return $db->add('log', %params);
 } # AddLog