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(
|
data class ReportingUnit(
|
||||||
|
|
||||||
@SerializedName("IdJednostkaSprawozdawcza")
|
@SerializedName("IdJednostkaSprawozdawcza")
|
||||||
val id: Int = 0,
|
val unitId: Int = 0,
|
||||||
|
|
||||||
@SerializedName("Skrot")
|
@SerializedName("Skrot")
|
||||||
val short: String = "",
|
val short: String = "",
|
||||||
|
|
|
@ -118,7 +118,7 @@ class RegisterRepository(
|
||||||
email = email,
|
email = email,
|
||||||
userLogin = email,
|
userLogin = email,
|
||||||
userName = unit?.senderName ?: email,
|
userName = unit?.senderName ?: email,
|
||||||
userLoginId = unit?.id ?: 0,
|
userLoginId = unit?.senderId ?: 0,
|
||||||
symbol = symbol,
|
symbol = symbol,
|
||||||
studentId = diary.studentId,
|
studentId = diary.studentId,
|
||||||
studentName = diary.studentName,
|
studentName = diary.studentName,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import io.github.wulkanowy.sdk.scrapper.messages.ReportingUnit as ScrapperReport
|
||||||
|
|
||||||
fun List<ScrapperReportingUnit>.mapReportingUnits() = map {
|
fun List<ScrapperReportingUnit>.mapReportingUnits() = map {
|
||||||
ReportingUnit(
|
ReportingUnit(
|
||||||
id = it.id,
|
id = it.unitId,
|
||||||
roles = it.roles,
|
roles = it.roles,
|
||||||
senderId = it.senderId,
|
senderId = it.senderId,
|
||||||
senderName = it.senderName,
|
senderName = it.senderName,
|
||||||
|
|
Loading…
Reference in a new issue