Fix profile path
This commit is contained in:
@@ -49,9 +49,12 @@ class Profile(
|
||||
@Query("DELETE FROM profiles")
|
||||
fun clear()
|
||||
|
||||
@Query("SELECT MAX(userOrder) + 1 FROM profiles")
|
||||
@Query("SELECT MAX(userOrder) + 1 FROM profiles")
|
||||
fun nextOrder(): Long?
|
||||
|
||||
@Query("SELECT MAX(id) + 1 FROM profiles")
|
||||
fun nextFileID(): Long?
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,11 @@ object ProfileManager {
|
||||
return instance.profileDao().nextOrder() ?: 0
|
||||
}
|
||||
|
||||
suspend fun nextFileID(): Long {
|
||||
return instance.profileDao().nextFileID() ?: 1
|
||||
}
|
||||
|
||||
|
||||
suspend fun get(id: Long): Profile? {
|
||||
return instance.profileDao().get(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user