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