1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-06 11:55:03 +02:00

Compare commits

...

6 Commits
8.9.0 ... 8.9.2

Author SHA1 Message Date
syuilo
c7c3f6999b Merge pull request #2465 from syuilo/develop
8.9.2
2018-08-25 11:11:00 +09:00
syuilo
fb4aa9bc1c 8.9.2 2018-08-25 11:10:38 +09:00
syuilo
ef57f5907b Fix bug 2018-08-25 11:10:27 +09:00
syuilo
eff44f9cd1 Merge pull request #2464 from syuilo/develop
8.9.1
2018-08-25 10:28:47 +09:00
syuilo
d7fa92d58f 8.9.1 2018-08-25 10:28:28 +09:00
syuilo
4e8033d5a4 Fix bug 2018-08-25 10:28:09 +09:00
3 changed files with 20 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "8.9.0",
"version": "8.9.2",
"clientVersion": "1.0.8950",
"codename": "nighthike",
"main": "./built/index.js",

View File

@@ -4,7 +4,23 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
function migrateStats(stats: IStats[]) {
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;

View File

@@ -116,7 +116,8 @@ async function deleteOldFile(user: IRemoteUser) {
const oldFile = await DriveFile.findOne({
_id: {
$nin: [user.avatarId, user.bannerId]
}
},
'metadata.userId': user._id
}, {
sort: {
_id: 1