Commit 6028e70 1 parent bf7779d commit 6028e70 Copy full SHA for 6028e70
File tree 6 files changed +11
-10
lines changed
items/[unallocatedItemId]/unallocatedItemRequests
partners/[partnerId]/unallocatedItemRequests
6 files changed +11
-10
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export async function GET(
46
46
47
47
// Get all unallocated item requests for the specified item
48
48
const unallocatedItemRequests = await db . unallocatedItemRequest . findMany ( {
49
- where : { itemId } ,
49
+ // where: { itemId },
50
50
select : {
51
51
id : true ,
52
52
partnerId : true ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export async function GET(
47
47
where : { partnerId } ,
48
48
select : {
49
49
id : true ,
50
- itemId : true ,
50
+ // itemId: true,
51
51
quantity : true ,
52
52
comments : true ,
53
53
} ,
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1
2
import { auth } from "@/auth" ;
2
3
import { db } from "@/db" ;
3
4
import {
@@ -51,14 +52,14 @@ export async function POST(req: Request) {
51
52
return argumentError ( "Not enough items for request" ) ;
52
53
53
54
// Create unallocated item request
54
- db . unallocatedItemRequest . create ( {
55
- data : {
56
- itemId : unallocatedItemId ,
57
- partnerId : parseInt ( session . user . id ) ,
58
- quantity : quantity ,
59
- comments : comment ,
60
- } ,
61
- } ) ;
55
+ // db.unallocatedItemRequest.create({
56
+ // data: {
57
+ // // itemId: unallocatedItemId,
58
+ // partnerId: parseInt(session.user.id),
59
+ // quantity: quantity,
60
+ // comments: comment,
61
+ // },
62
+ // });
62
63
63
64
return ok ( ) ;
64
65
}
You can’t perform that action at this time.
0 commit comments