chore: add createQuest changes

This commit is contained in:
vidvidvid
2022-01-26 08:30:00 +01:00
committed by Scott Stevenson
parent c8709496fe
commit a95ef4e3f3
2 changed files with 11 additions and 4 deletions

View File

@@ -35,12 +35,23 @@ export async function createQuest(
throw new Error('Player not allowed to create quests');
}
<<<<<<< develop
const { skillsId, ...questValues } = quest;
=======
const { skills_id: skillsId, roles_id: rolesId, ...questValues } = quest;
>>>>>>> chore: add createQuest changes
const questInput: Quest_Insert_Input = {
...questValues,
repetition: questRepetition,
<<<<<<< develop
createdByPlayerId: playerId,
=======
created_by_player_id: playerId,
quest_roles: {
data: rolesId.map((r, i) => ({ role: r, rank: i + 1 })),
},
>>>>>>> chore: add createQuest changes
quest_skills: {
data: skillsId.map((s) => ({ skillId: s })),
},

View File

@@ -6037,9 +6037,6 @@ input PlayerRole_set_input {
update columns of table "PlayerRole"
"""
enum PlayerRole_update_column {
<<<<<<< develop
"""column name"""
=======
"""
column name
"""
@@ -6048,7 +6045,6 @@ enum PlayerRole_update_column {
"""
column name
"""
>>>>>>> fix: update schema
description
"""column name"""