mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Removed reference to old PlayerRole_Enum
This commit is contained in:
committed by
Alec LaLonde
parent
89fe2b4db6
commit
eababb3ae7
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user