Skip to content

Commit

Permalink
Support legacy loading and liveQuery storage
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Oct 3, 2024
1 parent aee3c9c commit a60464a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/server/graphql/resolvers/apps/ClipsExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ export const ClipsExtensionPointInstallation = createResolverWithGid(

if (liveQuery == null) return null;

if (typeof liveQuery === 'string') {
return {content: liveQuery};
}

const module = getExtensionBuildModule(liveQuery.module, installation);

return {
Expand All @@ -493,6 +497,10 @@ export const ClipsExtensionPointInstallation = createResolverWithGid(

if (loading == null) return null;

if (typeof loading === 'string') {
return {content: loading};
}

const module = getExtensionBuildModule(loading.module, installation);

return {
Expand Down

0 comments on commit a60464a

Please sign in to comment.