File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
core/network/src/main/kotlin/com/stackknowledge/datasource/auth Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -15,27 +15,17 @@ class AuthDataSourceImpl @Inject constructor(
15
15
private val authAPI : AuthAPI
16
16
) : AuthDataSource {
17
17
override fun loginStudent (body : LoginRequest ): Flow <LoginResponse > = flow {
18
- Log .e(" dataSource loginStudent" , " loginStudent" )
19
18
emit(
20
19
StackKnowledgeApiHandler <LoginResponse >()
21
- .httpRequest {
22
- authAPI.loginStudent(
23
- body = body,
24
- )
25
- }
20
+ .httpRequest { authAPI.loginStudent(body = body) }
26
21
.sendRequest()
27
22
)
28
- Log .e(" dataSource loginStudent" , " loginStudent" )
29
23
}.flowOn(Dispatchers .IO )
30
24
31
25
override fun loginTeacher (body : LoginRequest ): Flow <LoginResponse > = flow {
32
26
emit(
33
27
StackKnowledgeApiHandler <LoginResponse >()
34
- .httpRequest {
35
- authAPI.loginTeacher(
36
- body = body,
37
- )
38
- }
28
+ .httpRequest { authAPI.loginTeacher(body = body) }
39
29
.sendRequest()
40
30
)
41
31
}.flowOn(Dispatchers .IO )
You can’t perform that action at this time.
0 commit comments