Skip to content

Commit

Permalink
🐛 fix: revert ui env changes
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Nov 15, 2024
1 parent 29bac5c commit 11bf278
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/code-metadata/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default defineEventHandler(async (event) => {

// Create an octokit app instance
const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/cwl-validation/rerun.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineEventHandler(async (event) => {

// Create an octokit app instance
const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/license/custom_title.put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineEventHandler(async (event) => {
await repoWritePermissions(event, owner, repo);

const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/license/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineEventHandler(async (event) => {

// Create an octokit app instance
const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
privateKey: process.env.GITHUB_APP_PRIVATE_KEY!,
oauth: {
clientId: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/release/github/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default defineEventHandler(async (event) => {
}

const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/release/zenodo/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default defineEventHandler(async (event) => {
}

const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
2 changes: 1 addition & 1 deletion ui/server/api/[owner]/[repo]/rerun.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineEventHandler(async (event) => {

// Create an octokit app instance
const app = new App({
appId: process.env.GH_APP_ID!,
appId: process.env.GITHUB_APP_ID!,
oauth: {
clientId: null as unknown as string,
clientSecret: null as unknown as string,
Expand Down
4 changes: 2 additions & 2 deletions ui/server/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ declare module "lucia" {
}

export const github = new GitHub(
process.env.GH_CLIENT_ID!,
process.env.GH_CLIENT_SECRET!,
process.env.GITHUB_CLIENT_ID!,
process.env.GITHUB_CLIENT_SECRET!,
);

0 comments on commit 11bf278

Please sign in to comment.