mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-21 18:18:06 +09:00
11 lines
236 B
TypeScript
11 lines
236 B
TypeScript
import db from '../../db/mongodb';
|
|
|
|
export default db.get('drive_folders') as any; // fuck type definition
|
|
|
|
export function isValidFolderName(name: string): boolean {
|
|
return (
|
|
(name.trim().length > 0) &&
|
|
(name.length <= 200)
|
|
);
|
|
}
|