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

27 lines
349 B
Go

package database
import (
"context"
"go.mongodb.org/mongo-driver/bson"
)
func EndCallRinging(caller uint32) {
filter := bson.D{
{"caller_pid", caller},
}
update := bson.D{
{
"$set", bson.D{
{"ringing", false},
},
},
}
_, err := callsCollection.UpdateOne(context.TODO(), filter, update)
if err != nil {
panic(err)
}
}