| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 77cc1b3 commit e81173c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,7 +186,7 @@ class MyFirebaseMessagingService : FirebaseMessagingService() { | |||
| 186 | 186 | ?: run { | |
| 187 | 187 | val extension = mimeType?.let { mime -> | |
| 188 | 188 | val ext = mime.substringAfterLast("/") | |
| 189 | - if (ext.isNotBlank()) ".$ext" else "" | ||
| 189 | + if (ext.isNotBlank()) ".$ext" else ".bin" | ||
| 190 | 190 | } ?: "" | |
| 191 | 191 | "attachment$extension" | |
| 192 | 192 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ type Message struct { | |||
| 90 | 90 | UserID UserID `json:"user_id" gorm:"index:idx_messages__user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"` | |
| 91 | 91 | Contact string `json:"contact" example:"+18005550100"` | |
| 92 | 92 | Content string `json:"content" example:"This is a sample text message"` | |
| 93 | - Attachments pq.StringArray `json:"attachments" gorm:"type:text[]" swaggertype:"array,string"` | ||
| 93 | + Attachments pq.StringArray `json:"attachments" gorm:"type:text[];column:attachments_new" swaggertype:"array,string"` | ||
| 94 | 94 | Encrypted bool `json:"encrypted" example:"false" gorm:"default:false"` | |
| 95 | 95 | Type MessageType `json:"type" example:"mobile-terminated"` | |
| 96 | 96 | Status MessageStatus `json:"status" example:"pending"` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments