Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
travel
Commits
52a72c18
Commit
52a72c18
authored
Jul 28, 2022
by
Yoon, Daeki
😅
Browse files
필요없는 코드 제거
parent
32764f1e
Changes
1
Show whitespace changes
Inline
Side-by-side
migrations/create.admin.ts
View file @
52a72c18
...
...
@@ -3,14 +3,6 @@ import { mongoUri } from "../src/config";
import
{
Role
,
User
}
from
"
../src/models
"
;
import
{
userDb
}
from
"
../src/db
"
;
const
roles
=
[
[
"
admin
"
,
1
],
[
"
manager
"
,
10
],
[
"
staff
"
,
100
],
[
"
user
"
,
1000
],
[
"
guest
"
,
10000
],
];
connect
(
mongoUri
)
.
then
(
async
(
mongoose
)
=>
{
const
adminRole
=
await
Role
.
findOne
({
name
:
"
admin
"
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment