Adds a news feed.
This commit is contained in:
parent
bc1de26b53
commit
1e23207e88
@ -982,6 +982,7 @@ public class delegationServices {
|
||||
String version = (String) Filter.get("platformVersion");
|
||||
String platformUpdateNotes = (String) Filter.get("platformUpdateNotes");
|
||||
String dr = (String) Filter.get("deniedmsg");
|
||||
String nw = (String) Filter.get("lnews");
|
||||
System.out.println("ApiGrabbed");
|
||||
|
||||
|
||||
@ -993,6 +994,7 @@ public class delegationServices {
|
||||
BasicDBObject updateQuery4 = new BasicDBObject();
|
||||
BasicDBObject updateQuery6 = new BasicDBObject();
|
||||
BasicDBObject updateQuery7 = new BasicDBObject();
|
||||
BasicDBObject updateQuery8 = new BasicDBObject();
|
||||
// BasicDBObject updateQuery11 = new BasicDBObject();
|
||||
if (pKey.equals(platKey))
|
||||
{
|
||||
@ -1022,6 +1024,8 @@ public class delegationServices {
|
||||
new BasicDBObject().append("pushV", version));
|
||||
updateQuery4.append("$set",
|
||||
new BasicDBObject().append("keyReq",pKey));
|
||||
updateQuery8.append("$set",
|
||||
new BasicDBObject().append("news",nw));
|
||||
updateQuery6.append("$set",
|
||||
new BasicDBObject().append("status", true));
|
||||
updateQuery7.append("$set",
|
||||
@ -1033,7 +1037,9 @@ public class delegationServices {
|
||||
dCollection.updateOne(searchQuery, updateQuery3);
|
||||
dCollection.updateOne(searchQuery, updateQuery4);
|
||||
dCollection.updateOne(searchQuery, updateQuery7);
|
||||
dCollection.updateOne(searchQuery, updateQuery8);
|
||||
dCollection.updateOne(searchQuery, updateQuery6);
|
||||
|
||||
//delegationTimer.trigger();
|
||||
System.out.println("Pushed");
|
||||
delegationTimer.DeleteTargetRequest(ClientID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user