robin*

기본 판이 이미 있어도 에러를 출력하지 않도록 수정

...@@ -6,5 +6,5 @@ module.exports = db; ...@@ -6,5 +6,5 @@ module.exports = db;
6 db.then(async() => { 6 db.then(async() => {
7 await db.get('board').createIndex({name: 1}, {unique: true}); 7 await db.get('board').createIndex({name: 1}, {unique: true});
8 await db.get('thread').createIndex({board: 1, lastUpdated: -1}); 8 await db.get('thread').createIndex({board: 1, lastUpdated: -1});
9 - await db.get('board').insert({name: 'amumal', title: '아무말판'}); 9 + await db.get('board').insert({name: 'amumal', title: '아무말판'}).catch(() => {});
10 }); 10 });
......