Skip to content

Commit a07d962

Browse files
fix(changelog): register changelog as a storage context
1 parent 799c2a8 commit a07d962

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/sim/lib/uploads/config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ function getS3Config(context: StorageContext): StorageConfig {
221221
case 'mothership':
222222
case 'workspace':
223223
case 'test':
224+
case 'changelog':
224225
case 'table-import':
225226
case 'organization-logos':
226227
return {
@@ -286,6 +287,7 @@ function getBlobConfig(context: StorageContext): StorageConfig {
286287
case 'mothership':
287288
case 'workspace':
288289
case 'test':
290+
case 'changelog':
289291
case 'table-import':
290292
case 'organization-logos':
291293
return {
@@ -348,6 +350,7 @@ function getGcsConfig(context: StorageContext): StorageConfig {
348350
case 'mothership':
349351
case 'workspace':
350352
case 'test':
353+
case 'changelog':
351354
case 'table-import':
352355
case 'organization-logos':
353356
return { bucket: GCS_CONFIG.bucket }

‎apps/sim/lib/uploads/shared/types.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export type StorageContext =
7070
| 'execution'
7171
| 'workspace'
7272
| 'test'
73+
| 'changelog'
7374
| 'table-import'
7475
| 'profile-pictures'
7576
| 'og-images'

‎apps/sim/lib/workspace-files/owned-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface OwnedFileWrite {
2727
*/
2828
interface OwnedFileKind {
2929
/** The VFS namespace the file is read under, as `<namespace>/<fileName>`. */
30-
namespace: string
30+
namespace: 'tests' | 'changelog'
3131
/** The owner key in a reference under this namespace; null for any other reference. */
3232
parseReference(reference: string): string | null
3333
/** The body file of the live owner a key names; null when there is none. */

0 commit comments

Comments
 (0)