-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor(actions): use better keys for action instances
- Loading branch information
1 parent
06319f3
commit 7c18bc2
Showing
27 changed files
with
251 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { createKeyValueDomainPersistenceService } from "backend/lib/key-value"; | ||
import { ActionIntegrationKeys } from "shared/types/actions"; | ||
import { ActionIntegrations } from "shared/types/actions"; | ||
|
||
const TEST_ACTIVATED_ACTIONS: ActionIntegrationKeys[] = [ | ||
ActionIntegrationKeys.SMTP, | ||
ActionIntegrationKeys.SLACK, | ||
const TEST_ACTIVATED_ACTIONS: ActionIntegrations[] = [ | ||
ActionIntegrations.SMTP, | ||
ActionIntegrations.SLACK, | ||
]; | ||
|
||
export const setupActivatedIntegrationsTestData = async ( | ||
testActivatedActions: ActionIntegrationKeys[] = TEST_ACTIVATED_ACTIONS | ||
testActivatedIntegrations: ActionIntegrations[] = TEST_ACTIVATED_ACTIONS | ||
) => { | ||
const activatedIntegrationsPersistenceService = | ||
createKeyValueDomainPersistenceService<ActionIntegrationKeys[]>( | ||
createKeyValueDomainPersistenceService<ActionIntegrations[]>( | ||
"activated-integrations" | ||
); | ||
|
||
await activatedIntegrationsPersistenceService.persistItem( | ||
testActivatedActions | ||
testActivatedIntegrations | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.