perf(api): change "all bands" endpoint to use a cachedEventHandler
This commit is contained in:
parent
3bfa7611bc
commit
122976f707
@ -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: ""},
|
||||
|
Loading…
x
Reference in New Issue
Block a user