chore: forgot to remove bad code

This commit is contained in:
Julian Lam
2025-02-06 18:03:47 -05:00
parent 5baa46d0bc
commit 865c09a5cf

View File

@@ -187,12 +187,12 @@ Mocks.post = async (objects) => {
}
switch (true) {
case image && image.hasOwnProperty('url') && image.url && mime.getType(image.url).startsWith('image/'): {
case image && image.hasOwnProperty('url') && image.url: {
image = image.url;
break;
}
case image && typeof image === 'string' && mime.getType(image).startsWith('image/'): {
case image && typeof image === 'string': {
// no change
break;
}