更正資料庫名稱
This commit is contained in:
parent
169278fc1d
commit
1d6cca58c2
@ -7,7 +7,7 @@ import org.litote.kmongo.id.toId
|
||||
|
||||
class UserService {
|
||||
private val client = KMongo.createClient("mongodb://www.ray650128.com:27017")
|
||||
private val database = client.getDatabase("users")
|
||||
private val database = client.getDatabase("ar_system")
|
||||
private val userCollection = database.getCollection<User>()
|
||||
|
||||
fun create(user: User): Id<User>? {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user