Skip to content

Commit

Permalink
fix: fix build issues after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
D0dii committed Nov 15, 2024
1 parent 2d99b57 commit 25f016b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
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

0 comments on commit 25f016b

Please sign in to comment.