Skip to content

Commit

Permalink
fix: readme and const placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jun 11, 2024
1 parent 20a7025 commit 6fd8d73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To start a task, a hunter should use the `/start` command. This will assign them
- The issue is not already assigned
- The hunter has not reached the maximum number of concurrent tasks
- The command is not disabled at the repository or organization level
- TODO: If the hunter meets the required karma and XP requirements
- TODO: If the hunter meets the required XP requirements

### Stop a task

Expand Down
8 changes: 4 additions & 4 deletions src/adapters/supabase/helpers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { Super } from "./supabase";
import { Context } from "../../../types/context";
import { addCommentToIssue } from "../../../utils/issue";

const FAILED_TO_GET_USER = "Failed to get user";
const SUCCESSFULLY_FETCHED_USER = "Successfully fetched user";

export class User extends Super {
user_id: string | undefined;
comment_id: string | undefined;
Expand Down Expand Up @@ -73,7 +76,4 @@ export class User extends Super {
if (error) throw console.error("Error getting location data", new Error(error.message));
return locationData;
}
}

const FAILED_TO_GET_USER = "Failed to get user";
const SUCCESSFULLY_FETCHED_USER = "Successfully fetched user";
}

0 comments on commit 6fd8d73

Please sign in to comment.