Skip to content

Commit

Permalink
Better draft.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Nov 13, 2022
1 parent bd9730c commit ea463f1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions imports/router/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,22 @@ export async function handleSelectorOperation(operation: keyof typeof handlerOpe
const promiseSelectors = promiseSelectorsResult?.data?.promise_selectors;
handleSelectorDebug('promiseSelectors.length', promiseSelectors?.length);

const promiseSelectorsQueryStringDraft = `query SELECT_PROMISE_SELECTORS($itemId: bigint)
{
promise_links(where: {
const promiseSelectorsQueryStringDraft = `query SELECT_PROMISE_SELECTORS($itemId: bigint) {
promise_links(where: {
# old_link_id: { _eq: ${oldLink?.id } },
# new_link_id: { _eq: ${newLink?.id } },
values_operation: { _eq: "${operation.replace('Handle', '').toUpperCase()}"},
promise_selectors: {
item_id: { _eq: $itemId },
handle_operation: { type_id: { _eq: ${handleOperationTypeId} } }
}
})
{
promise_selectors
{
}) {
id
promise_id
promise_selectors (where: {
item_id: { _eq: $itemId },
handle_operation: { type_id: { _eq: ${handleOperationTypeId} } }
}) {
id
promise_id
handle_operation {
Expand Down

0 comments on commit ea463f1

Please sign in to comment.