mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-13 14:18:26 +09:00
[Server] Add 'hash' index to the drive_files collection
This commit is contained in:
parent
ac661eacc0
commit
2230360e7e
@ -1,6 +1,10 @@
|
|||||||
import db from '../../db/mongodb';
|
import db from '../../db/mongodb';
|
||||||
|
|
||||||
export default db.get('drive_files') as any; // fuck type definition
|
const collection = db.get('drive_files');
|
||||||
|
|
||||||
|
(collection as any).index('hash'); // fuck type definition
|
||||||
|
|
||||||
|
export default collection as any; // fuck type definition
|
||||||
|
|
||||||
export function validateFileName(name: string): boolean {
|
export function validateFileName(name: string): boolean {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user