-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: colors of the prompts for the threat level retro match now the p…
…rompts' names (#9956)
- Loading branch information
1 parent
cec7063
commit 0287026
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
packages/server/postgres/migrations/1720689742934_fixThreatLevelPromptColors.ts
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import {r} from 'rethinkdb-ts' | ||
import connectRethinkDB from '../../database/connectRethinkDB' | ||
|
||
export async function up() { | ||
await connectRethinkDB() | ||
|
||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateSeverePrompt') | ||
.update({groupColor: '#FD6157'}) | ||
.run() | ||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateElevatedPrompt') | ||
.update({groupColor: '#FFCC63'}) | ||
.run() | ||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateLowPrompt') | ||
.update({groupColor: '#66BC8C'}) | ||
.run() | ||
} | ||
|
||
export async function down() { | ||
await connectRethinkDB() | ||
|
||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateSeverePrompt') | ||
.update({groupColor: '#66BC8C'}) | ||
.run() | ||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateElevatedPrompt') | ||
.update({groupColor: '#FD6157'}) | ||
.run() | ||
await r | ||
.table('ReflectPrompt') | ||
.get('threatLevelPremortemTemplateLowPrompt') | ||
.update({groupColor: '#FFCC63'}) | ||
.run() | ||
} |