Skip to content

Commit

Permalink
- reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Sławomir Paszkiewicz committed Sep 11, 2016
1 parent 6392989 commit 3a3094e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions daemon/modules/cutoff/cutoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,19 +390,6 @@ void reload(GLOBAL *g, struct cutoff_module *c)
execn = 1;
}

if(c->cuton)
{
n = g->db_pexec(g->conn, "UPDATE nodes n1,(SELECT n.id FROM "
"nodes n LEFT JOIN nodeassignments ON n.id = nodeassignments.nodeid LEFT "
"JOIN assignments ON nodeassignments.assignmentid=assignments.id WHERE "
"(assignments.dateto > unix_timestamp() or assignments.dateto='0' ) AND "
"assignments.datefrom < unix_timestamp() AND assignments.suspended = 0 AND "
"assignments.tariffid > 0 AND access = 0 AND (SELECT SUM(value) "
"FROM cash WHERE customerid = n.ownerid) >= 0) AS n2 SET n1.access=1, n1.warning=0 WHERE n1.id = n2.id"
);
execn = 1;
}

// debtors
if(plimit)
query = strdup(
Expand Down

0 comments on commit 3a3094e

Please sign in to comment.