Fix userLoginId value
This commit is contained in:
parent
2b686643f3
commit
c6d1453536
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName
|
|||
data class ReportingUnit(
|
||||
|
||||
@SerializedName("IdJednostkaSprawozdawcza")
|
||||
val id: Int = 0,
|
||||
val unitId: Int = 0,
|
||||
|
||||
@SerializedName("Skrot")
|
||||
val short: String = "",
|
||||
|
|
|
@ -118,7 +118,7 @@ class RegisterRepository(
|
|||
email = email,
|
||||
userLogin = email,
|
||||
userName = unit?.senderName ?: email,
|
||||
userLoginId = unit?.id ?: 0,
|
||||
userLoginId = unit?.senderId ?: 0,
|
||||
symbol = symbol,
|
||||
studentId = diary.studentId,
|
||||
studentName = diary.studentName,
|
||||
|
|
|
@ -6,7 +6,7 @@ import io.github.wulkanowy.sdk.scrapper.messages.ReportingUnit as ScrapperReport
|
|||
|
||||
fun List<ScrapperReportingUnit>.mapReportingUnits() = map {
|
||||
ReportingUnit(
|
||||
id = it.id,
|
||||
id = it.unitId,
|
||||
roles = it.roles,
|
||||
senderId = it.senderId,
|
||||
senderName = it.senderName,
|
||||
|
|
Loading…
Reference in a new issue