feat: import/export system config
This commit is contained in:
@@ -21,7 +21,7 @@ public class DataFileService
|
||||
_dispatch = dispatch;
|
||||
}
|
||||
|
||||
public async Task<JObject> ExportSystem(PKSystem system, string timezone)
|
||||
public async Task<JObject> ExportSystem(PKSystem system)
|
||||
{
|
||||
await using var conn = await _db.Obtain();
|
||||
|
||||
@@ -30,7 +30,9 @@ public class DataFileService
|
||||
|
||||
o.Merge(system.ToJson(LookupContext.ByOwner));
|
||||
|
||||
o.Add("timezone", timezone);
|
||||
var config = await _repo.GetSystemConfig(system.Id);
|
||||
o.Add("config", config.ToJson());
|
||||
|
||||
o.Add("accounts", new JArray((await _repo.GetSystemAccounts(system.Id)).ToList()));
|
||||
o.Add("members",
|
||||
new JArray((await _repo.GetSystemMembers(system.Id).ToListAsync()).Select(m =>
|
||||
|
Reference in New Issue
Block a user