更正資料庫名稱

This commit is contained in:
Raymond Yang 2023-05-15 17:04:56 +08:00
parent 169278fc1d
commit 1d6cca58c2

View File

@ -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>? {