Skip to content
Open
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 server/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getStrapiApp = async () => {
const appDir = process.cwd();
const isTSProject = await tsUtils.isUsingTypeScript(appDir);
const outDir = await tsUtils.resolveOutDir(appDir);
const alreadyCompiled = await fs.existsSync(outDir);
const alreadyCompiled = !!outDir && fs.existsSync(outDir);

let appContext;
if (!isTSProject || !alreadyCompiled) {
Expand Down
2 changes: 1 addition & 1 deletion server/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const sanitizeConfig = ({
delete relationEntity._id;
delete relationEntity.id;
delete relationEntity.updatedAt;
delete config.publishedAt;
delete relationEntity.publishedAt;
delete relationEntity.createdAt;
relationEntity = sortByKeys(relationEntity);

Expand Down
Loading