wiiu-chat-secure/database/new_call.go
2023-04-08 16:39:11 -04:00

21 lines
319 B
Go

package database
import (
"context"
"go.mongodb.org/mongo-driver/bson"
)
func NewCall(caller uint32, target uint32) {
document := bson.D{
{"caller_pid", caller},
{"target_pid", target},
{"ringing", true},
}
_, err := callsCollection.InsertOne(context.TODO(), document)
if err != nil {
panic(err)
}
}