Add log-only account sync save hooks

This commit is contained in:
2026-06-08 03:56:50 -04:00
parent 1d162bb723
commit f8d50b3ab7
4 changed files with 83 additions and 0 deletions
+3
View File
@@ -9,6 +9,7 @@
#include <phosg/Time.hh>
#include "Account.hh"
#include "AccountSync.hh"
std::shared_ptr<DCNTELicense> DCNTELicense::from_json(const phosg::JSON& json) {
auto ret = std::make_shared<DCNTELicense>();
@@ -400,6 +401,8 @@ void Account::save() const {
phosg::JSON::SerializeOption::FORMAT | phosg::JSON::SerializeOption::HEX_INTEGERS);
std::string filename = std::format("system/licenses/{:010}.json", this->account_id);
phosg::save_file(filename, json_data);
AccountSync::notify_account_saved(this->account_id, filename);
}
}