fix: Text's created_at type
This commit is contained in:
parent
67701e89a4
commit
f77d0b987d
1 changed files with 1 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
|||
package databases
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
"go.mongodb.org/mongo-driver/v2/mongo"
|
||||
)
|
||||
|
@ -11,7 +9,7 @@ type Text struct {
|
|||
Id bson.ObjectID `bson:"_id"`
|
||||
Text string
|
||||
Persona string
|
||||
CreatedAt time.Time `bson:"created_at"`
|
||||
CreatedAt bson.DateTime `bson:"created_at"`
|
||||
}
|
||||
|
||||
var Texts *mongo.Collection = Client.Database("muffin_ai_test").Collection("text")
|
||||
|
|
Loading…
Reference in a new issue