Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions backend/common/schemas/RegistrationSection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const mongoose = require('mongoose')
const RegistrationQuestionSchema = require('@hackjunction/shared/schemas/RegistrationQuestion')

const RegistrationSectionSchema = new mongoose.Schema({
label: {
type: String,
required: true,
},
name: {
type: String,
required: true,
},
description: String,
conditional: String,
questions: [new mongoose.Schema(RegistrationQuestionSchema.mongoose)],
})

module.exports = RegistrationSectionSchema
32 changes: 16 additions & 16 deletions backend/common/services/discord.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
const axios = require('axios')
const Discord = require('discord.js')
// const axios = require('axios')
// const Discord = require('discord.js')

const client = new Discord.Client()
const DiscordService = {
initialize: () => {
return new Promise((resolve, reject) => {
client.once('ready', () => {
console.log(client.users.map(user => user.email))
resolve(true)
})
console.log(global.gConfig.DISCORD_BOT_TOKEN)
client.login(global.gConfig.DISCORD_BOT_TOKEN)
})
},
}
module.exports = DiscordService
// const client = new Discord.Client()
// const DiscordService = {
// initialize: () => {
// return new Promise((resolve, reject) => {
// client.once('ready', () => {
// console.log(client.users.map(user => user.email))
// resolve(true)
// })
// console.log(global.gConfig.DISCORD_BOT_TOKEN)
// client.login(global.gConfig.DISCORD_BOT_TOKEN)
// })
// },
// }
// module.exports = DiscordService
13 changes: 0 additions & 13 deletions backend/common/services/google-calendar/credentials.json

This file was deleted.

44 changes: 0 additions & 44 deletions backend/common/services/google-calendar/getAccessTokenCode.js

This file was deleted.

178 changes: 0 additions & 178 deletions backend/common/services/google-calendar/google-calendar.js

This file was deleted.

7 changes: 0 additions & 7 deletions backend/common/services/google-calendar/token.json

This file was deleted.

42 changes: 0 additions & 42 deletions backend/common/services/google-calendar/writeAccessTokenJson.js

This file was deleted.

Loading