Skip to content

Commit e7916fe

Browse files
author
David Hasani
committed
use enum
1 parent a82bc58 commit e7916fe

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ export class Messenger {
267267
mandatory: true,
268268
options: [
269269
{
270-
value: 'Oracle',
271-
label: 'Oracle',
270+
value: DB.ORACLE,
271+
label: DB.ORACLE,
272272
},
273273
{
274-
value: 'Other',
275-
label: 'Other',
274+
value: DB.OTHER,
275+
label: DB.OTHER,
276276
},
277277
],
278278
})
@@ -284,12 +284,12 @@ export class Messenger {
284284
mandatory: true,
285285
options: [
286286
{
287-
value: 'Amazon RDS for PostgreSQL',
288-
label: 'Amazon RDS for PostgreSQL',
287+
value: DB.AMAZON_RDS,
288+
label: DB.AMAZON_RDS,
289289
},
290290
{
291-
value: 'Amazon Aurora PostgreSQL',
292-
label: 'Amazon Aurora PostgreSQL',
291+
value: DB.AMAZON_AURORA,
292+
label: DB.AMAZON_AURORA,
293293
},
294294
],
295295
})

packages/core/src/codewhisperer/models/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ export enum JDKVersion {
305305

306306
export enum DB {
307307
ORACLE = 'Oracle',
308-
AMAZON_RDS = 'Amazon RDS',
309-
AMAZON_AURORA = 'Amazon Aurora',
308+
AMAZON_RDS = 'Amazon RDS for PostgreSQL',
309+
AMAZON_AURORA = 'Amazon Aurora PostgreSQL',
310310
OTHER = 'Other',
311311
}
312312

0 commit comments

Comments
 (0)