Skip to content

Commit 0f2172c

Browse files
committed
Add expired message status
1 parent 938ef0b commit 0f2172c

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

api/pkg/di/container.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,15 @@ func (container *Container) DB() (db *gorm.DB) {
120120
return container.db
121121
}
122122

123+
container.logger.Debug(fmt.Sprintf("creating %T", db))
124+
123125
gl := gormLogger.New(log.New(os.Stdout, "\r\n", log.LstdFlags), gormLogger.Config{
124126
SlowThreshold: 200 * time.Millisecond,
125127
LogLevel: gormLogger.Info,
126128
IgnoreRecordNotFoundError: false,
127129
Colorful: true,
128130
})
129131

130-
container.logger.Debug(fmt.Sprintf("creating %T", db))
131132
db, err := gorm.Open(postgres.Open(os.Getenv("DATABASE_URL")), &gorm.Config{Logger: gl})
132133
if err != nil {
133134
container.logger.Fatal(err)

web/pages/threads/_id.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
<div v-bind="attrs" v-on="on">
104104
<v-icon
105105
v-if="isExpired(message)"
106-
color="primary"
107-
class="mt-n6"
106+
color="error"
107+
class="mt-n2"
108108
>mdi-alert</v-icon
109109
>
110110
<v-progress-circular
@@ -131,7 +131,9 @@
131131
</v-icon>
132132
</div>
133133
</template>
134-
<span>{{ message.status }}</span>
134+
<span>
135+
{{ isExpired(message) ? 'expired' : message.status }}
136+
</span>
135137
</v-tooltip>
136138
</div>
137139
</div>

0 commit comments

Comments
 (0)