no message

This commit is contained in:
2024-09-24 23:34:41 +03:00
parent 33e6abfbf5
commit bb671c5166
12 changed files with 40 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
package Repository.Server;
import Common.Constants;
import Common.Database.DBObject;
import Common.Global;
import Common.Utils.Utils;
@@ -61,11 +62,10 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
@Override
public void StartAction() throws Exception {
if (Global.properties.EmailAdminsOnStart) {
Vector<String> targets = new Vector<>(Arrays.asList(Global.admins_mails));
EmailMessage message = new EmailMessage(
"Сервер Sapfor запущен",
new Date().toString(),
targets
new Vector<>()
);
Email(message);
}
@@ -405,12 +405,10 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
}
//bonus backup
if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) {
Vector<String> targets = new Vector<>();
targets.addAll(Arrays.asList(Global.admins_mails));
EmailMessage message = new EmailMessage(
"db backup",
"копия баз данных журнала ошибок",
targets
new Vector<>()
);
Email(message, db.getFile());
}