perf(api): change "all bands" endpoint to use a cachedEventHandler

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-10-10 22:40:08 -04:00
parent 3bfa7611bc
commit 122976f707
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -1,7 +1,7 @@
import { Band } from "~/models/band";
import { IUser } from "~/models/user";
export default eventHandler(async (ev) => {
export default cachedEventHandler(async (ev) => {
let bands = await Band.find({
_id: {
// $not: {name: ""},