Skip to content
Snippets Groups Projects
Unverified Commit dc2055f5 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent afeb8058
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,21 @@ Note.createIndex({
});
export default Note;
// 後方互換性のため
Note.findOne({
fileIds: { $exists: true }
}).then(n => {
if (n == null) {
Note.update({}, {
$rename: {
mediaIds: 'fileIds'
}
}, {
multi: true
});
}
});
export function isValidText(text: string): boolean {
return length(text.trim()) <= 1000 && text.trim() != '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment