Skip to content

Commit

Permalink
Merge pull request #1620 from serlo/fix-creation-exercise
Browse files Browse the repository at this point in the history
fix(set-entity): choose right db name for exercise types
  • Loading branch information
hugotiburtino authored Jun 24, 2024
2 parents 6dc2a3a + 6af5bec commit cbb949c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 42 deletions.
Empty file.
41 changes: 0 additions & 41 deletions packages/db-migrations/__tests__/redis.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/server/src/schema/uuid/abstract-entity/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,10 @@ function toDatabaseType(entityType: EntityType) {
switch (entityType) {
case EntityType.CoursePage:
return 'course-page'
case EntityType.Exercise:
return 'text-exercise'
case EntityType.ExerciseGroup:
return 'exercise-group'
return 'text-exercise-group'
default:
return entityType.toLowerCase()
}
Expand Down

0 comments on commit cbb949c

Please sign in to comment.