Do not use updateOne on possibly sharded collection without shard key

This commit is contained in:
Andris Reinman 2020-05-25 11:50:43 +03:00
parent 3d38cf1dc2
commit 9cfd3271b6

View file

@ -175,7 +175,7 @@ class AuditHandler {
}
async updateDeliveryStatus(queueId, seq, status, info) {
await this.gridfs.collection('audit.files').updateOne(
await this.gridfs.collection('audit.files').update(
{ 'metadata.info.queueId': queueId },
{
$push: {