Skip to content

Commit 24695d9

Browse files
committedOct 3, 2023
fix: minor fix
1 parent 31d5a3f commit 24695d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/mongodb.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class Mongodb {
325325
})
326326
.then((result) => {
327327
debug(`Asset unpublish status: ${JSON.stringify(result)}`)
328-
if (result.value === null) {
328+
if (result === null) {
329329
return resolve(asset)
330330
}
331331

@@ -337,7 +337,7 @@ export class Mongodb {
337337
},
338338
locale: asset.locale,
339339
uid: asset.uid,
340-
url: result.value.url,
340+
url: result.url,
341341
})
342342
.toArray()
343343
.then((assets) => {

0 commit comments

Comments
 (0)
Please sign in to comment.