Skip to content

Commit

Permalink
Merge pull request #141 from athenekilta/bugfix/add-sort-data
Browse files Browse the repository at this point in the history
Add data for sortId and sync scripts to container
  • Loading branch information
jviitamo authored Mar 17, 2022
2 parents 7c5531e + 3b34727 commit b2489a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- ./public:/opt/ilmomasiina/public
- ./config:/opt/ilmomasiina/config
- ./bin:/opt/ilmomasiina/bin
- ./scripts:/opt/ilmomasiina/scripts
env_file:
- .env
ports:
Expand Down
14 changes: 14 additions & 0 deletions scripts/create-fake-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,48 +79,56 @@ const events = [
const quotas = [
{
eventId: 1,
sortId: 1,
title: 'Minuuttikalja 2016',
// going fields doesn't exist in db, but it's used to create right amount of signups
going: 18,
size: 20,
},
{
eventId: 2,
sortId: 1,
title: 'Athene',
going: 0,
size: 20,
},
{
eventId: 2,
sortId: 2,
title: 'Tietokilta',
going: 29,
size: 20,
},
{
eventId: 3,
sortId: 1,
title: 'Athene',
going: 29,
size: 20,
},
{
eventId: 3,
sortId: 2,
title: 'Prodeko',
going: 27,
size: 20,
},
{
eventId: 3,
sortId: 3,
title: 'Tietokilta',
going: 29,
size: 20,
},
{
eventId: 4,
sortId: 1,
title: 'Athene Alumni',
going: 5,
},
{
eventId: 5,
sortId: 1,
title: 'Vanha tapahtuma',
going: 5,
old: true,
Expand All @@ -130,6 +138,7 @@ const quotas = [
const questions = [
{
id: 1,
sortId: 1,
eventId: 3,
type: 'text',
question: 'Pöytätoive',
Expand All @@ -138,6 +147,7 @@ const questions = [
},
{
id: 2,
sortId: 2,
eventId: 3,
type: 'text',
question: 'Valmistumisvuosi',
Expand All @@ -146,6 +156,7 @@ const questions = [
},
{
id: 3,
sortId: 3,
eventId: 3,
type: 'textarea',
question: 'Terveiset',
Expand All @@ -154,6 +165,7 @@ const questions = [
},
{
id: 4,
sortId: 4,
eventId: 3,
type: 'checkbox',
question: 'Monivalinta',
Expand All @@ -163,6 +175,7 @@ const questions = [
},
{
id: 5,
sortId: 5,
eventId: 3,
type: 'select',
question: 'Valintaruudut',
Expand All @@ -172,6 +185,7 @@ const questions = [
},
{
id: 6,
sortId: 6,
eventId: 3,
type: 'checkbox',
question: 'Osallistun',
Expand Down

0 comments on commit b2489a3

Please sign in to comment.