@gallop.software/studio 2.3.75 → 2.3.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +3 -8
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -4099,14 +4099,9 @@ async function handleCheckFeaturedImage() {
|
|
|
4099
4099
|
} catch {
|
|
4100
4100
|
}
|
|
4101
4101
|
const expectedFilename = `${projectName}.jpg`;
|
|
4102
|
-
const
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
await fs10.access(expectedPath);
|
|
4106
|
-
exists = true;
|
|
4107
|
-
} catch {
|
|
4108
|
-
exists = false;
|
|
4109
|
-
}
|
|
4102
|
+
const metaKey = `/${projectName}.jpg`;
|
|
4103
|
+
const meta = await loadMeta();
|
|
4104
|
+
const exists = metaKey in meta && !Array.isArray(meta[metaKey]);
|
|
4110
4105
|
return jsonResponse({
|
|
4111
4106
|
filename: expectedFilename,
|
|
4112
4107
|
exists,
|