mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 14:46:43 -06:00
10 lines
212 B
TypeScript
10 lines
212 B
TypeScript
import db from '../../db/mongodb';
|
|
|
|
export default db.collection('drive_folders');
|
|
|
|
export function isValidFolderName(name: string): boolean {
|
|
return (
|
|
(name.trim().length > 0) &&
|
|
(name.length <= 200)
|
|
);
|
|
}
|