Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update only public models
Browse files
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 |
|