Skip to content

Commit

Permalink
Fix for repeating DEFAULT_CONTEXT definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjameson committed Oct 25, 2023
1 parent bf1c332 commit f3c9e10
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions create-default-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,14 @@ const main = async (options) => {
}

// Make sure we have a DEFAULT_CONTEXT tag_definition
const tagCreateResp = await supabase.from('tag_definitions').upsert({
name: 'DEFAULT_CONTEXT',
target_type: 'context',
scope: 'system',
});
const tagCreateResp = await supabase.from('tag_definitions').upsert(
{
name: 'DEFAULT_CONTEXT',
target_type: 'context',
scope: 'system',
},
{ onConflict: 'name, target_type, scope' }
);
};

const optionDefinitions = [
Expand Down

0 comments on commit f3c9e10

Please sign in to comment.