aboutsummaryrefslogtreecommitdiff
path: root/backend/db/schemas.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/db/schemas.go')
-rw-r--r--backend/db/schemas.go4
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