Skip to content

Commit

Permalink
✨ Supabase のプロジェクトを変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Nov 4, 2023
1 parent 5b7db4f commit ed2bae8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import kotlinx.serialization.modules.contextual
internal fun createNitoSupabaseClient(
json: Json,
): SupabaseClient = createSupabaseClient(
supabaseUrl = "https://hwxxihvcszfhaxlguajv.supabase.co",
supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imh3eHhpaHZjc3pmaGF4bGd1YWp2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDcwODc3MjYsImV4cCI6MTk2MjY2MzcyNn0.ieij2I1mYfKsS70tv5h8Kzudcrv0YeCVG38ld9AwlSQ",
supabaseUrl = "https://gtfjukrauyhrbglrzlva.supabase.co",
supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imd0Zmp1a3JhdXlocmJnbHJ6bHZhIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTkwMDQ3NTgsImV4cCI6MjAxNDU4MDc1OH0.zRjlzXVyz4vBM8Tb8GcpyPyTkCmOwdV-Xs18Agw2w-E",
) {
install(Postgrest)
install(GoTrue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ data object FakeScheduleRemoteDataSource : ScheduleRemoteDataSource {

return (1..limit).map {
createFakeNetworkSchedule(
id = it.toLong(),
id = it.toString(),
scheduledAt = instant.plus(1, DateTimeUnit.DAY, timeZone),
)
}.map(NetworkSchedule::toSchedule)
}

override suspend fun getSchedule(id: String): Schedule {
return createFakeNetworkSchedule(
id = id.toLong(),
id = id,
scheduledAt = Clock.System.now(),
).toSchedule()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import kotlinx.serialization.Serializable

@Serializable
internal data class NetworkSchedule(
val id: Long,
val id: String,
val scheduledAt: Instant,
) {
fun toSchedule() = Schedule(
id = "$id",
id = id,
scheduledAt = scheduledAt,
)
}

internal fun createFakeNetworkSchedule(
id: Long = 1,
id: String = "bbe00d24-d840-460d-a127-f23f9e472cc6",
scheduledAt: Instant = Clock.System.now(),
) = NetworkSchedule(
id = id,
Expand Down

0 comments on commit ed2bae8

Please sign in to comment.