Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbishop committed Jun 28, 2022
1 parent 66fad07 commit bd85db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twingate/eventProcessor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export async function eventProcessor(event) {
if ("tg_resource" in event.detail.tags){
let output = await createResourceCommand(networkAddress, apiKey, remoteNetworkName, resourceName, resourceAddress, null)
resourceId = output.id
resourceName = event.detail.tags.tg_resource_id || resourceId || resourceName
//todo: handle multiple resources. create multiple resources and add groups to the resources
const resourceArn = event.resources
let tagInput = {
Expand Down Expand Up @@ -96,6 +95,8 @@ export async function eventProcessor(event) {

}

resourceName = event.detail.tags.tg_resource_id || resourceId || resourceName

if (event.detail["changed-tag-keys"].includes("tg_groups")){
if ("tg_groups" in event.detail.tags){
let groupInfo = event.detail.tags.tg_groups.replace(/\s*\+\+\s*/g, "++").split("++")
Expand Down

0 comments on commit bd85db4

Please sign in to comment.