Skip to content

Commit

Permalink
fix: colors of the prompts for the threat level retro match now the p…
Browse files Browse the repository at this point in the history
…rompts' names (#9956)
  • Loading branch information
rafaelromcar-parabol authored Jul 17, 2024
1 parent cec7063 commit 0287026
Showing 1 changed file with 42 additions and 0 deletions.
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()
}

0 comments on commit 0287026

Please sign in to comment.