mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Log Join info
This commit is contained in:
parent
e34b12c84c
commit
8867b73ba9
1 changed files with 3 additions and 0 deletions
|
|
@ -14,7 +14,9 @@ export default async (req, res) => {
|
|||
}
|
||||
|
||||
let data = req?.body || JSON.parse(req?.body || '{}')
|
||||
console.log(data)
|
||||
const exists = await isDuplicate(data.name, data.email, data.reason)
|
||||
console.log('Exists:', exists)
|
||||
|
||||
if (!exists) {
|
||||
await joinTable.create({
|
||||
|
|
@ -24,6 +26,7 @@ export default async (req, res) => {
|
|||
Reason: data.reason
|
||||
})
|
||||
if (data.teen) {
|
||||
console.log('Posting to Slack…')
|
||||
let postData = {
|
||||
channel: 'G0132DNFE7J', // G0147KPNHU0
|
||||
blocks: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue