chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -38,7 +38,7 @@ export class GpuEdgeNodeService {
|
||||
|
||||
const nodeId = `GPU-EDGE-${uuidv4()}`;
|
||||
|
||||
const node = await prisma.gpuEdgeNode.create({
|
||||
const node = await prisma.gpu_edge_nodes.create({
|
||||
data: {
|
||||
nodeId,
|
||||
nodeType: request.nodeType,
|
||||
@@ -65,7 +65,7 @@ export class GpuEdgeNodeService {
|
||||
* Get node by ID
|
||||
*/
|
||||
async getNode(nodeId: string) {
|
||||
return await prisma.gpuEdgeNode.findUnique({
|
||||
return await prisma.gpu_edge_nodes.findUnique({
|
||||
where: { nodeId },
|
||||
include: {
|
||||
region: true,
|
||||
@@ -78,7 +78,7 @@ export class GpuEdgeNodeService {
|
||||
* Get nodes by type
|
||||
*/
|
||||
async getNodesByType(nodeType: string) {
|
||||
return await prisma.gpuEdgeNode.findMany({
|
||||
return await prisma.gpu_edge_nodes.findMany({
|
||||
where: { nodeType, status: 'active' },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
});
|
||||
@@ -88,7 +88,7 @@ export class GpuEdgeNodeService {
|
||||
* Get nodes for region
|
||||
*/
|
||||
async getNodesForRegion(regionId: string) {
|
||||
return await prisma.gpuEdgeNode.findMany({
|
||||
return await prisma.gpu_edge_nodes.findMany({
|
||||
where: { regionId, status: 'active' },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
});
|
||||
@@ -98,7 +98,7 @@ export class GpuEdgeNodeService {
|
||||
* Update node status
|
||||
*/
|
||||
async updateNodeStatus(nodeId: string, status: string) {
|
||||
return await prisma.gpuEdgeNode.update({
|
||||
return await prisma.gpu_edge_nodes.update({
|
||||
where: { nodeId },
|
||||
data: { status },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user