Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Sep 30, 2024
1 parent c77fe2e commit 1495f3b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ee/tabby-schema/src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,6 @@ impl Mutation {
user_message_id: ID,
assistant_message_id: ID,
) -> Result<bool> {
// ast-grep-ignore: use-schema-result
use anyhow::Context;

let user = check_user_allow_auth_token(ctx).await?;
let svc = ctx.locator.thread();
let Some(thread) = svc.get(&thread_id).await? else {
Expand All @@ -1035,9 +1032,6 @@ impl Mutation {

/// Turn on persisted status for a thread.
async fn set_thread_persisted(ctx: &Context, thread_id: ID) -> Result<bool> {
// ast-grep-ignore: use-schema-result
use anyhow::Context;

let user = check_user(ctx).await?;
let svc = ctx.locator.thread();
let Some(thread) = svc.get(&thread_id).await? else {
Expand Down Expand Up @@ -1231,9 +1225,6 @@ impl Subscription {
ctx: &Context,
input: CreateThreadRunInput,
) -> Result<ThreadRunStream> {
// ast-grep-ignore: use-schema-result
use anyhow::Context;

let user = check_user_allow_auth_token(ctx).await?;
input.validate()?;

Expand Down

0 comments on commit 1495f3b

Please sign in to comment.