mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-14 08:58:02 -05:00
chore: add createQuest changes
This commit is contained in:
committed by
Scott Stevenson
parent
c8709496fe
commit
a95ef4e3f3
@@ -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 })),
|
||||
},
|
||||
|
||||
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user