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'
]
})
export default defineEventHandler((event) => {
return ["Slash", "Het", "Gen"];
});

@ -1,10 +1,10 @@
import mongoose from "mongoose";
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 totalAuthors = await aa.countDocuments();
return {stories: totalStories, authors: totalAuthors}
})
import mongoose from "mongoose";
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 totalAuthors = await aa.countDocuments();
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 fmfilt: any = {};
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))) {
fmfilt.year = process.env.YEAR;
fmfilt.isAnniversary = false;
} else {
fmfilt.keythatdoesntexist = {
$exists: true
}
}
let ficmasarray_raw = await Ficmas.find(fmfilt)
// console.log(ficsHidden());
// console.log(query);
event.context.ficmasarray_raw = ficmasarray_raw
})
import { Ficmas } from "~/models/challenges/ficmas";
export default eventHandler(async (event) => {
let y = new Date().getFullYear();
let fmfilt: any = {};
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))) {
fmfilt.year = process.env.YEAR;
fmfilt.isAnniversary = false;
} else {
fmfilt.keythatdoesntexist = {
$exists: true,
};
}
let ficmasarray_raw = await Ficmas.find(fmfilt);
// console.log(ficsHidden());
// console.log(query);
event.context.ficmasarray_raw = ficmasarray_raw;
});