mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: pk;config
This commit is contained in:
parent
d195c80d92
commit
56d07e0f2d
41 changed files with 648 additions and 313 deletions
|
|
@ -21,7 +21,7 @@ public class DataFileService
|
|||
_dispatch = dispatch;
|
||||
}
|
||||
|
||||
public async Task<JObject> ExportSystem(PKSystem system)
|
||||
public async Task<JObject> ExportSystem(PKSystem system, string timezone)
|
||||
{
|
||||
await using var conn = await _db.Obtain();
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ public class DataFileService
|
|||
|
||||
o.Merge(system.ToJson(LookupContext.ByOwner));
|
||||
|
||||
o.Add("timezone", system.UiTz);
|
||||
o.Add("timezone", timezone);
|
||||
o.Add("accounts", new JArray((await _repo.GetSystemAccounts(system.Id)).ToList()));
|
||||
o.Add("members",
|
||||
new JArray((await _repo.GetSystemMembers(system.Id).ToListAsync()).Select(m =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue