mirror of
https://github.com/PretendoNetwork/wiiu-chat-secure.git
synced 2026-04-28 10:07:00 -05:00
27 lines
349 B
Go
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)
|
|
}
|
|
}
|