diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 03:21:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 03:21:54 +0900 |
| commit | 31802c97494c27f019c127077d7f1d88fd753fb8 (patch) | |
| tree | 8d4d15eedd039fa3998517abdda3294fd8bde0d7 /src/models/meta.ts | |
| parent | Improve doc (diff) | |
| download | misskey-31802c97494c27f019c127077d7f1d88fd753fb8.tar.gz misskey-31802c97494c27f019c127077d7f1d88fd753fb8.tar.bz2 misskey-31802c97494c27f019c127077d7f1d88fd753fb8.zip | |
Improve doc
Diffstat (limited to 'src/models/meta.ts')
| -rw-r--r-- | src/models/meta.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/models/meta.ts b/src/models/meta.ts index e5b729ea16..9e4468032c 100644 --- a/src/models/meta.ts +++ b/src/models/meta.ts @@ -151,6 +151,15 @@ if ((config as any).sw) { } }); } +Meta.findOne({}).then(m => { + if (m != null && (m as any).broadcasts != null) { + Meta.update({}, { + $rename: { + broadcasts: 'announcements' + } + }); + } +}); export type IMeta = { name?: string; @@ -173,7 +182,7 @@ export type IMeta = { langs?: string[]; - broadcasts?: any[]; + announcements?: any[]; stats?: { notesCount: number; |