sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12182: LJSUP-12388: Implement notifications sub...

Committer: vtroitsky
LJSUP-12388: Implement notifications subsystem
U   trunk/bin/maint/selfpromo.pl
Modified: trunk/bin/maint/selfpromo.pl
===================================================================
--- trunk/bin/maint/selfpromo.pl	2012-06-26 19:25:07 UTC (rev 12181)
+++ trunk/bin/maint/selfpromo.pl	2012-06-26 23:14:55 UTC (rev 12182)
@@ -33,4 +33,16 @@
     LJ::Pay::CommercialPromo->create_promotions($slot) if $slot;
 };
 
+$maint{'commercial_check'} = sub {
+    # check some promotions before active one
+    my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_COMMERCIAL());
+    $slot->check_current_promotion() if $slot;
+};
+
+$maint{'commercial_notify'} = sub {
+    # Notify promoters of not ready items
+    my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_COMMERCIAL());
+    LJ::Pay::CommercialPromo->notify_promoters($slot) if $slot;
+};
+
 1;

Tags: ljcom, pl, sunnyman, vtroitsky
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments