mirror of
https://github.com/PretendoNetwork/wiiu-chat-secure.git
synced 2026-04-25 07:53:11 -05:00
19 lines
253 B
Go
19 lines
253 B
Go
package database
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.mongodb.org/mongo-driver/bson"
|
|
)
|
|
|
|
func EndCall(caller uint32) {
|
|
filter := bson.D{
|
|
{"caller_pid", caller},
|
|
}
|
|
|
|
_, err := callsCollection.DeleteOne(context.TODO(), filter)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|