style: run prettier

This commit is contained in:
parent f0346ebdbd
commit 6167a9ea70
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
3 changed files with 38 additions and 39 deletions

@ -1,7 +1,3 @@
export default defineEventHandler((event) => {
return [
'Slash',
'Het',
'Gen'
]
})
return ["Slash", "Het", "Gen"];
});

@ -3,8 +3,8 @@ import { Story } from "~/models/stories";
export default eventHandler(async (event) => {
let aa = mongoose.connection.db.collection("z_index_totAuthors");
let totalStories = await Story.countDocuments({"chapters.hidden": false});
let totalStories = await Story.countDocuments({ "chapters.hidden": false });
let totalAuthors = await aa.countDocuments();
return {stories: totalStories, authors: totalAuthors}
})
return { stories: totalStories, authors: totalAuthors };
});

@ -1,22 +1,25 @@
import { Ficmas } from "~/models/challenges/ficmas";
export default eventHandler(async (event) => {
let y = new Date().getFullYear()
let y = new Date().getFullYear();
let fmfilt: any = {};
if (!!process.env.JulyFicmas && new Date() < new Date(Date.parse('Aug 1 ' + y))) {
if (
!!process.env.JulyFicmas &&
new Date() < new Date(Date.parse("Aug 1 " + y))
) {
fmfilt.isAnniversary = true;
fmfilt.year = y;
} else if (new Date() < new Date(Date.parse('Dec 25 ' + y))) {
} else if (new Date() < new Date(Date.parse("Dec 25 " + y))) {
fmfilt.year = process.env.YEAR;
fmfilt.isAnniversary = false;
} else {
fmfilt.keythatdoesntexist = {
$exists: true
}
$exists: true,
};
}
let ficmasarray_raw = await Ficmas.find(fmfilt)
// console.log(ficsHidden());
// console.log(query);
event.context.ficmasarray_raw = ficmasarray_raw
})
let ficmasarray_raw = await Ficmas.find(fmfilt);
// console.log(ficsHidden());
// console.log(query);
event.context.ficmasarray_raw = ficmasarray_raw;
});