paricafe/src/api/models/drive-folder.ts
syuilo 87d14a9545 ✌️
2017-01-17 09:12:33 +09:00

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)
);
}