diff options
| author | Jacky Zhao <[email protected]> | 2023-07-09 14:00:26 -0700 |
|---|---|---|
| committer | Jacky Zhao <[email protected]> | 2023-07-09 14:00:26 -0700 |
| commit | 9aa4f25bee7c997b42c81ee46f53eb7143821d74 (patch) | |
| tree | 85a399b9afc2d27f93df664afef3d1ec8c8164b3 /backend/db/schemas.go | |
| parent | fix: pre text wrapping to overflow (diff) | |
| download | ctrl-v-9aa4f25bee7c997b42c81ee46f53eb7143821d74.tar.xz ctrl-v-9aa4f25bee7c997b42c81ee46f53eb7143821d74.zip | |
switch to official mongo-go-driver
Diffstat (limited to 'backend/db/schemas.go')
| -rw-r--r-- | backend/db/schemas.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/db/schemas.go b/backend/db/schemas.go index a3b55d0..2a665aa 100644 --- a/backend/db/schemas.go +++ b/backend/db/schemas.go @@ -3,12 +3,12 @@ package db import ( "time" - "github.com/globalsign/mgo/bson" + "go.mongodb.org/mongo-driver/bson/primitive" ) // Paste represents a single paste type Paste struct { - ID bson.ObjectId `bson:"_id,omitempty"` + ID primitive.ObjectID `bson:"_id,omitempty"` Hash string Title string Content string |