Skip to content

Commit 1c34023

Browse files
committed
Use correct column name
1 parent cbc9b55 commit 1c34023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/pkg/entities/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Message struct {
9090
UserID UserID `json:"user_id" gorm:"index:idx_messages__user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
9191
Contact string `json:"contact" example:"+18005550100"`
9292
Content string `json:"content" example:"This is a sample text message"`
93-
Attachments pq.StringArray `json:"attachments" gorm:"type:text[];column:attachments_new" swaggertype:"array,string"`
93+
Attachments pq.StringArray `json:"attachments" gorm:"type:text[]" swaggertype:"array,string"`
9494
Encrypted bool `json:"encrypted" example:"false" gorm:"default:false"`
9595
Type MessageType `json:"type" example:"mobile-terminated"`
9696
Status MessageStatus `json:"status" example:"pending"`

0 commit comments

Comments
 (0)