enzostvs HF staff commited on
Commit
612d973
β€’
1 Parent(s): 48b9816

update only public models

Browse files
Files changed (1) hide show
  1. src/routes/api/models/+server.ts +5 -1
src/routes/api/models/+server.ts CHANGED
@@ -70,7 +70,11 @@ export async function PATCH({ request } : RequestEvent) {
70
  }, { status: 401 });
71
  }
72
 
73
- const models = await prisma.model.findMany();
 
 
 
 
74
 
75
  let total_updates = 0;
76
 
 
70
  }, { status: 401 });
71
  }
72
 
73
+ const models = await prisma.model.findMany({
74
+ where: {
75
+ isPublic: true
76
+ }
77
+ });
78
 
79
  let total_updates = 0;
80