"feat: rename 'createdDate' to 'createDate' across frontend, backend, and mobile codebases"

This commit is contained in:
louiscklaw
2025-05-30 20:15:27 +08:00
parent fd20a3531b
commit 8b73b583cd
33 changed files with 1273 additions and 1425 deletions

View File

@@ -903,7 +903,7 @@ model InvoiceItem {
invoiceTo Json
sent Float
dueDate DateTime @default(now())
createdDate DateTime @default(now())
createDate DateTime @default(now())
}
// model Invoice {

View File

@@ -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 })),
},
});
}

View File

@@ -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);
}

View File

@@ -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"
}
}