Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/admin/administrators.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function updateAdministrator(adminId, update) {
mongo.decorateUpdate(changes)

try {
const {value} = await mongo.db.collection('administrators').findOneAndUpdate(
const value = await mongo.db.collection('administrators').findOneAndUpdate(
{_id: adminId},
{$set: {...changes}},
{returnDocument: 'after'}
Expand Down
2 changes: 1 addition & 1 deletion backend/admin/creators-emails.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function updateCreator(creatorId, update) {
mongo.decorateUpdate(changes)

try {
const {value} = await mongo.db.collection('creators-emails').findOneAndUpdate(
const value = await mongo.db.collection('creators-emails').findOneAndUpdate(
{_id: creatorId},
{$set: {...changes}},
{returnDocument: 'after'}
Expand Down
4 changes: 2 additions & 2 deletions backend/lib/models/projets.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export async function updateProjet(id, payload) {
}

try {
const {value} = await mongo.db.collection('projets').findOneAndUpdate(
{_id: mongo.parseObjectId(id), _deleted: {$exists: false}},
const value = await mongo.db.collection('projets').findOneAndUpdate(
{_id: id, _deleted: {$exists: false}},
{$set: projet},
{returnDocument: 'after'}
)
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,33 @@
"scalingo-postbuild": "yarn download-contours && next build && yarn workspaces focus --all --production && yarn cache clean --all"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.577.0",
"@aws-sdk/lib-storage": "^3.578.0",
"@aws-sdk/client-s3": "^3.864.0",
"@aws-sdk/lib-storage": "^3.864.0",
"@etalab/decoupage-administratif": "^3.1.1",
"@gouvfr/dsfr": "^1.9.2",
"@keyv/sqlite": "^4.0.1",
"@next/bundle-analyzer": "^13.5.8",
"@gouvfr/dsfr": "^1.14.0",
"@keyv/sqlite": "^4.0.5",
"@next/bundle-analyzer": "^13.5.11",
"@socialgouv/matomo-next": "^1.9.2",
"@turf/area": "^6.5.0",
"@turf/union": "^6.5.0",
"date-fns": "^2.30.0",
"dotenv": "^16.4.7",
"dotenv": "^16.6.1",
"express": "^4.21.2",
"got": "^13.0.0",
"hash-object": "^5.0.1",
"http-errors": "^2.0.0",
"joi": "^17.13.3",
"keyv": "^5.2.3",
"keyv": "^5.5.0",
"lodash-es": "^4.17.21",
"lru-cache": "^11.0.2",
"maplibre-gl": "^3.5.1",
"mongodb": "^5.9.2",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"nanoid": "^5.0.9",
"lru-cache": "^11.1.0",
"maplibre-gl": "^3.6.2",
"mongodb": "~6.16.0",
"morgan": "^1.10.1",
"multer": "^1.4.5-lts.2",
"nanoid": "^5.1.5",
"next": "13.4.7",
"nodemailer": "^6.9.16",
"papaparse": "^5.4.1",
"nodemailer": "^6.10.1",
"papaparse": "^5.5.3",
"prop-types": "^15.8.1",
"random-number-csprng": "^1.0.2",
"react": "^18.3.1",
Expand All @@ -51,11 +51,11 @@
"wellknown": "^0.5.0"
},
"devDependencies": {
"ava": "^6.2.0",
"ava": "^6.4.1",
"eslint-config-xo": "^0.46.0",
"eslint-config-xo-nextjs": "^6.3.0",
"mongodb-memory-server": "^10.1.3",
"supertest": "^7.0.0",
"mongodb-memory-server": "^10.2.0",
"supertest": "^7.1.4",
"xo": "^0.60.0"
},
"xo": {
Expand Down
Loading