style: run prettier
This commit is contained in:
		
							parent
							
								
									f0346ebdbd
								
							
						
					
					
						commit
						6167a9ea70
					
				| @ -1,7 +1,3 @@ | |||||||
| export default defineEventHandler((event) => { | export default defineEventHandler((event) => { | ||||||
| 	return [ | 	return ["Slash", "Het", "Gen"]; | ||||||
| 		'Slash', | }); | ||||||
| 		'Het', |  | ||||||
| 		'Gen' |  | ||||||
| 	] |  | ||||||
| }) |  | ||||||
|  | |||||||
| @ -3,8 +3,8 @@ import { Story } from "~/models/stories"; | |||||||
| 
 | 
 | ||||||
| export default eventHandler(async (event) => { | export default eventHandler(async (event) => { | ||||||
| 	let aa = mongoose.connection.db.collection("z_index_totAuthors"); | 	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(); | 	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"; | import { Ficmas } from "~/models/challenges/ficmas"; | ||||||
| 
 | 
 | ||||||
| export default eventHandler(async (event) => { | export default eventHandler(async (event) => { | ||||||
| 	let y = new Date().getFullYear() | 	let y = new Date().getFullYear(); | ||||||
| 	let fmfilt: any = {}; | 	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.isAnniversary = true; | ||||||
| 		fmfilt.year = y; | 		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.year = process.env.YEAR; | ||||||
| 		fmfilt.isAnniversary = false; | 		fmfilt.isAnniversary = false; | ||||||
| 	} else { | 	} else { | ||||||
| 		fmfilt.keythatdoesntexist = { | 		fmfilt.keythatdoesntexist = { | ||||||
| 			$exists: true | 			$exists: true, | ||||||
|  | 		}; | ||||||
| 	} | 	} | ||||||
| 	} | 	let ficmasarray_raw = await Ficmas.find(fmfilt); | ||||||
| 	let ficmasarray_raw = await Ficmas.find(fmfilt) |  | ||||||
| 	// console.log(ficsHidden());
 | 	// console.log(ficsHidden());
 | ||||||
| 	// console.log(query);
 | 	// console.log(query);
 | ||||||
| 	event.context.ficmasarray_raw = ficmasarray_raw | 	event.context.ficmasarray_raw = ficmasarray_raw; | ||||||
| }) | }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user