mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
feature(server): allow untracking Logical Model when feature is off
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8339 GitOrigin-RevId: 20d4bfa465fa1ad6d1b2c630973e9c59a9d6178e
This commit is contained in:
parent
aea809b5c2
commit
c441fa4a7f
@ -235,14 +235,13 @@ runUntrackLogicalModel ::
|
||||
( BackendMetadata b,
|
||||
MonadError QErr m,
|
||||
CacheRWM m,
|
||||
MetadataM m,
|
||||
HasServerConfigCtx m,
|
||||
MonadIO m
|
||||
MetadataM m
|
||||
) =>
|
||||
UntrackLogicalModel b ->
|
||||
m EncJSON
|
||||
runUntrackLogicalModel q = do
|
||||
throwIfFeatureDisabled
|
||||
-- we do not check for feature flag here as we always want users to be able
|
||||
-- to remove logical models if they'd like
|
||||
assertLogicalModelExists @b source fieldName
|
||||
|
||||
let metadataObj =
|
||||
|
Loading…
Reference in New Issue
Block a user