Skip to content

Commit

Permalink
feat(github): add CD caching
Browse files Browse the repository at this point in the history
  • Loading branch information
corybuecker committed Oct 24, 2024
1 parent ba81ee2 commit d37a682
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/continuous-delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ jobs:
with:
push: true
tags: ${{ secrets.DOCKER_IMAGE }}:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_IMAGE }}:buildcache,mode=max
13 changes: 5 additions & 8 deletions src/authenticated/preferences/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ pub async fn action(
.await
.unwrap();

match &form.timezone {
Some(string) => {
if string.is_empty() {
user.preferences.timezone = None
} else {
user.preferences.timezone = Some(string.clone())
}
if let Some(string) = &form.timezone {
if string.is_empty() {
user.preferences.timezone = None
} else {
user.preferences.timezone = Some(string.clone())
}
None => {}
}

if let Some(goal_header) = &form.goal_header {
Expand Down

0 comments on commit d37a682

Please sign in to comment.