"feat: rename 'createdDate' to 'createDate' across frontend, backend, and mobile codebases"
This commit is contained in:
@@ -903,7 +903,7 @@ model InvoiceItem {
|
||||
invoiceTo Json
|
||||
sent Float
|
||||
dueDate DateTime @default(now())
|
||||
createdDate DateTime @default(now())
|
||||
createDate DateTime @default(now())
|
||||
}
|
||||
|
||||
// model Invoice {
|
||||
|
@@ -55,7 +55,7 @@ async function invoiceItem() {
|
||||
invoiceTo: _addressBooks[index + 1],
|
||||
sent: _mock.number.nativeS(index),
|
||||
dueDate: new Date(fAdd({ days: index + 15, hours: index })),
|
||||
createdDate: new Date(fAdd({ days: index + 15, hours: index })),
|
||||
createDate: new Date(fAdd({ days: index + 15, hours: index })),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@@ -2,13 +2,9 @@ import type { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import { STATUS, response, handleError } from 'src/utils/response';
|
||||
|
||||
import prisma from '../../lib/prisma';
|
||||
|
||||
export async function GET(req: NextRequest, res: NextResponse) {
|
||||
try {
|
||||
const users = await prisma.user.findMany();
|
||||
|
||||
return response({ users }, STATUS.OK);
|
||||
return response({ hello: 'world' }, STATUS.OK);
|
||||
} catch (error) {
|
||||
return handleError('Post - Get latest', error);
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ content-type: application/json
|
||||
"phoneNumber": "+44 20 7946 0958"
|
||||
},
|
||||
"sent": 10,
|
||||
"createdDate": "2025-06-15T17:07:24+08:00",
|
||||
"createDate": "2025-06-15T17:07:24+08:00",
|
||||
"dueDate": "2025-06-15T17:07:24+08:00"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user