Improve doc

This commit is contained in:
syuilo
2019-02-25 03:21:54 +09:00
parent b67f3438e9
commit 31802c9749
10 changed files with 85 additions and 16 deletions

View File

@ -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;