Toggle navigation
Toggle navigation
This project
Loading...
Sign in
201side
/
floater
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
robin*
2020-12-07 21:20:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7a0a1bd76d38ca70954ea808b869f975d98e739
b7a0a1bd
1 parent
22fe3115
db 인덱스 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/db.js
src/db.js
View file @
b7a0a1b
...
...
@@ -2,3 +2,8 @@ const config = require('./config');
const
db
=
require
(
'monk'
)(
config
.
db
);
module
.
exports
=
db
;
db
.
then
(
async
()
=>
{
await
db
.
get
(
'board'
).
createIndex
({
name
:
1
},
{
unique
:
true
});
await
db
.
get
(
'thread'
).
createIndex
({
board
:
1
,
lastUpdated
:
-
1
});
});
...
...
Please
register
or
login
to post a comment