mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 22:43:09 +02:00
10 lines
236 B
TypeScript
10 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)
|
|
);
|
|
}
|