Skip to content

Commit

Permalink
Revert "Merge branch 'main' into appts-highlight"
Browse files Browse the repository at this point in the history
This reverts commit 007dd02, reversing
changes made to 8bafd49.
  • Loading branch information
R2bEEaton committed Dec 19, 2023
1 parent 007dd02 commit 246e992
Show file tree
Hide file tree
Showing 16 changed files with 9,218 additions and 9,821 deletions.
2 changes: 1 addition & 1 deletion api/db/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ datasource db {

generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "rhel-openssl-3.0.x"]
binaryTargets = "native"
}

// Define your own datamodels here and run `yarn redwood prisma migrate dev`
Expand Down
6 changes: 3 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@redwoodjs/api": "6.5.1",
"@redwoodjs/auth-dbauth-api": "6.5.1",
"@redwoodjs/graphql-server": "6.5.1",
"@redwoodjs/api": "6.3.3",
"@redwoodjs/auth-dbauth-api": "6.3.3",
"@redwoodjs/graphql-server": "6.3.3",
"crypto-js": "^4.2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ import { db } from 'src/lib/db'
import CryptoJS from 'crypto-js'

export const handler = async (event, _context) => {
return await callback(event)
switch (event.path) {
case '/oauth/callback':
return await callback(event)
default:
// Whatever this is, it's not correct, so return "Not Found"
return {
statusCode: 404,
error: 'Error: returned status code 302',
}
}
}

const callback = async (event) => {
Expand Down
Loading

0 comments on commit 246e992

Please sign in to comment.