mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-17 12:35:37 +02:00
Use createIndex() instead of index() to avoid deprecation warnings
This commit is contained in:
@@ -2,7 +2,7 @@ import db from '../../db/mongodb';
|
||||
|
||||
const collection = db.get('drive_files');
|
||||
|
||||
(collection as any).index('hash'); // fuck type definition
|
||||
(collection as any).createIndex('hash'); // fuck type definition
|
||||
|
||||
export default collection as any; // fuck type definition
|
||||
|
||||
|
||||
Reference in New Issue
Block a user