no message

This commit is contained in:
2023-10-14 00:43:39 +03:00
parent 7aeb531208
commit a2971e95da
7 changed files with 36 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
package Repository.Server;
import Common.Constants;
import Common.Database.DBObject;
import Common.Global;
import Common.Utils.Utils;
@@ -37,6 +38,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
public int getPort() {
return 7995;
}
/*
@Override
public boolean needsEmail(String email) {
if (db.subscribers.containsKey(email)) {
@@ -44,6 +46,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
}
return false;
}
*/
@Override
public void DeleteAction(DBObject object) throws Exception {
if (object instanceof BugReport) {
@@ -409,7 +412,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
//bonus backup
if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) {
Vector<String> targets = new Vector<>();
targets.add(Global.MailAddress);
targets.add(Constants.MailAddress);
targets.addAll(Arrays.asList(Global.admins_mails));
EmailMessage message = new EmailMessage(
"db backup",