Removed reference to old PlayerRole_Enum

This commit is contained in:
Alec LaLonde
2021-09-28 16:29:13 -06:00
committed by Alec LaLonde
parent 89fe2b4db6
commit eababb3ae7
2 changed files with 13 additions and 4 deletions

View File

@@ -70,10 +70,10 @@
- role: player
permission:
columns:
- role
- label
- emoji
- description
- label
- role
filter: {}
- role: public
permission:
@@ -516,6 +516,15 @@
- role
- player_id
filter: {}
update_permissions:
- role: player
permission:
columns:
- rank
filter:
player_id:
_eq: X-Hasura-User-Id
check: null
delete_permissions:
- role: player
permission:

View File

@@ -6,11 +6,11 @@ import {
import { Constants } from '@metafam/utils';
import { CONFIG } from '../../config';
import { Player_Role, PlayerRole_Enum } from '../../lib/autogen/hasura-sdk';
import { Player_Role } from '../../lib/autogen/hasura-sdk';
import { client } from '../../lib/hasuraClient';
import { TriggerPayload } from './types';
type RoleIds = { [role in PlayerRole_Enum]: string };
type RoleIds = { [role: string]: string };
export interface UpdateRole {
playerId: string;