mirror of https://gitgud.io/fatchan/jschan.git
parent
a834672c51
commit
9884ca2665
2 changed files with 13 additions and 1 deletions
@ -0,0 +1,12 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db, redis) => { |
||||
|
||||
console.log('remove older phashes'); |
||||
await db.collection('posts').updateMany({}, { |
||||
'$unset': { |
||||
'files.$[].phash': '' |
||||
} |
||||
}); |
||||
|
||||
}; |
Loading…
Reference in new issue