Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for node 22.x on backend and shared folder, wip #931

Draft
wants to merge 3 commits into
base: upgrade/backend
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
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