-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip - creating next buttons for articles * wip marking user articles as started * marking user article complete when hitting the button * marking articles as completed at load * wip - marking the completed articles completed live and not just in database. Probably need to do an upsert or something else * marking articles as started and completed at the right times * fixed errors and warningsO * using latest ycl * fixed clippy warnings * running cargo check only on this library * fixing bug due to futursolo/stylist-rs#120 * using an older version of rust * fixed cargo formatting problem * fixed cargo formatting problem
- Loading branch information
1 parent
d5d1f40
commit 016e102
Showing
16 changed files
with
3,741 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation ApiCompleteUserArticle($user_id: Int!, $article_id: Int!) { | ||
update_user_articles(where: {user_id: {_eq: $user_id}, article_id: {_eq: $article_id}}, _set: {completed_at: "NOW()"}) { | ||
affected_rows | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mutation ApiInsertUserArticle($user_id: Int!, $article_id: Int!) { | ||
insert_user_articles_one(object: {article_id: $article_id, user_id: $user_id}) { | ||
article_id | ||
user_id | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,9 @@ query ApiGetAllData { | |
id | ||
} | ||
} | ||
articles { | ||
article_id | ||
completed_at | ||
} | ||
} | ||
} |
Oops, something went wrong.