Skip to content

Commit

Permalink
[front] migrator for google_drive (#9445)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier authored Dec 17, 2024
1 parent c1e48ce commit 64190f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion front/migrations/20241211_parents_front_migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ const migrators: Record<ConnectorProvider, ProviderMigrator | null> = {
parents.map(
(parent) => `slack-channel-` + _.last(parent.split(`slack-channel-`))!
),
google_drive: null,
google_drive: (parents) =>
parents.map((parent) =>
parent.startsWith("gdrive-") || parent.startsWith("google-spreadsheet-")
? parent
: `gdrive-${parent}`
),
microsoft: null,
github: null,
notion: (parents) => {
Expand Down

0 comments on commit 64190f2

Please sign in to comment.