Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use more standard style of removing id attr
Browse files Browse the repository at this point in the history
Chet Joswig authored and Chet Joswig committed Oct 30, 2023
1 parent 5fb4313 commit a60c967
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/utilities/effects.ts
Original file line number Diff line number Diff line change
@@ -3715,15 +3715,11 @@ const effects = {
if (!queryPermissions.UPDATE_ACTIVITY_PRESET(user, updatedActivityPreset)) {
throwPermissionError('update this activity preset');
}

const { id: _id, ...restOfPresetPayload } = updatedActivityPreset;
const { update_activity_presets_by_pk } = await reqHasura<ActivityPreset>(
gql.UPDATE_ACTIVITY_PRESET,
{
activityPresetSetInput: {
...updatedActivityPreset,
id: undefined,
},
id,
activityPresetSetInput: restOfPresetPayload,
},
user,
);

0 comments on commit a60c967

Please sign in to comment.