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

fix: fix build issues after merge #76

Merged
merged 1 commit into from
Nov 15, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/app/validators/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const createCourseValidator = vine.compile(
.string()
.unique(async (db, value) => !(await db.from('courses').where('id', value).first())),
name: vine.string(),
registrationId: vine.number(),
registrationId: vine.string(),
})
)
6 changes: 3 additions & 3 deletions backend/database/seeders/1_registration_seeder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ export default class extends BaseSeeder {
await Registration.createMany([
{
name: 'W05-EBR-SI-3',
department: 'Wydział Elektryczny [W5]',
departmentId: 'Wydział Elektryczny [W5]',
round: 1,
},
{
name: 'W13-HWDP-SI-3',
department: 'Wydział Matematyki [W13]',
departmentId: 'Wydział Matematyki [W13]',
round: 2,
},
{
name: 'W4-IST-SI-3',
department: 'Wydział Informatyki i Telekomunikacji [W4N]',
departmentId: 'Wydział Informatyki i Telekomunikacji [W4N]',
round: 1,
},
])
Expand Down
4 changes: 2 additions & 2 deletions backend/database/seeders/3_course_seeder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { BaseSeeder } from '@adonisjs/lucid/seeders'
export default class extends BaseSeeder {
async run() {
await Course.createMany([
{ id: 'usos.mathematics.com', name: 'Mathematics 101', registrationId: 1 },
{ id: 'usos.physics.com', name: 'Physics 2', registrationId: 2 },
{ id: 'usos.mathematics.com', name: 'Mathematics 101', registrationId: '1' },
{ id: 'usos.physics.com', name: 'Physics 2', registrationId: '2' },
])
}
}
1 change: 1 addition & 0 deletions backend/start/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Registration from '#models/registration'
import Course from '#models/course'
import Group from '#models/group'

//@ts-ignore
const scrapData = async () => {
console.log('Scraping departments')
const departments = await scrapDepartments()
Expand Down
Loading