upd: api website dan mobile
Deskripsi: - update order komentar pada mobile dan website pada fitur diskusi umum dan diskusi divisi No Issues
This commit is contained in:
@@ -3,8 +3,8 @@ import { funGetUserByCookies } from "@/module/auth";
|
||||
import { createLogUser } from "@/module/user";
|
||||
import _ from "lodash";
|
||||
import moment from "moment";
|
||||
import { NextResponse } from "next/server";
|
||||
import "moment/locale/id";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
|
||||
// GET ONE DETAIL DISKUSI UMUM
|
||||
@@ -75,6 +75,9 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
img: true
|
||||
}
|
||||
}
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: "asc"
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -63,6 +63,9 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
},
|
||||
where: {
|
||||
isActive:true
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: "asc"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -77,6 +77,9 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
img: true
|
||||
}
|
||||
}
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: "asc"
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -54,6 +54,9 @@ export async function GET(request: Request, context: { params: { id: string } })
|
||||
img: true
|
||||
}
|
||||
}
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: "asc"
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user