Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Jan 25, 2024
1 parent ebcc667 commit 1cb8bc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion platform/api/src/video_event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ async fn handle_room_event<G: ApiGlobal>(global: &Arc<G>, event: event::Room, ti
.await
.context("failed to fetch playback session count")?;

let t = chrono::NaiveDateTime::from_timestamp_millis(timestamp).expect("timestamp is not valid").and_utc();
let t = chrono::NaiveDateTime::from_timestamp_millis(timestamp)
.expect("timestamp is not valid")
.and_utc();

let channel_id = common::database::query("UPDATE users SET channel_active_connection_id = $1, channel_live_viewer_count = $2, channel_live_viewer_count_updated_at = NOW(), channel_last_live_at = $3 WHERE channel_room_id = $4 RETURNING id")
.bind(connection_id.into_ulid())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@
on:pending={resetStatus}
on:uploading={() => (status = Status.Saving)}>Upload Picture</FileUploadButton
>
<button class="button secondary" on:click={removeOfflineBanner} disabled={!$user.channel.offlineBanner}>
<button
class="button secondary"
on:click={removeOfflineBanner}
disabled={!$user.channel.offlineBanner}
>
<Fa icon={faTrashAlt} />
Remove Picture
</button>
Expand Down
4 changes: 2 additions & 2 deletions platform/website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
"strict": true,
},
}

0 comments on commit 1cb8bc8

Please sign in to comment.