mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 00:33:08 +02:00
commit
c7c3f6999b
2 changed files with 18 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "8.9.1",
|
"version": "8.9.2",
|
||||||
"clientVersion": "1.0.8950",
|
"clientVersion": "1.0.8950",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
|
|
|
@ -4,7 +4,23 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
||||||
|
|
||||||
function migrateStats(stats: IStats[]) {
|
function migrateStats(stats: IStats[]) {
|
||||||
stats.forEach(stat => {
|
stats.forEach(stat => {
|
||||||
const isOldData = stat.users.local.inc == null;
|
const isOldData =
|
||||||
|
stat.users.local.inc == null ||
|
||||||
|
stat.users.local.dec == null ||
|
||||||
|
stat.users.remote.inc == null ||
|
||||||
|
stat.users.remote.dec == null ||
|
||||||
|
stat.notes.local.inc == null ||
|
||||||
|
stat.notes.local.dec == null ||
|
||||||
|
stat.notes.remote.inc == null ||
|
||||||
|
stat.notes.remote.dec == null ||
|
||||||
|
stat.drive.local.incCount == null ||
|
||||||
|
stat.drive.local.decCount == null ||
|
||||||
|
stat.drive.local.incSize == null ||
|
||||||
|
stat.drive.local.decSize == null ||
|
||||||
|
stat.drive.remote.incCount == null ||
|
||||||
|
stat.drive.remote.decCount == null ||
|
||||||
|
stat.drive.remote.incSize == null ||
|
||||||
|
stat.drive.remote.decSize == null;
|
||||||
|
|
||||||
if (!isOldData) return;
|
if (!isOldData) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue