mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-29 00:41:08 -04:00
Abstract saving to DB.
This commit is contained in:
@ -65,6 +65,11 @@ export function validateField(input, field, label) {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function removeVuexORMFlags(obj) {
|
||||
delete obj.$id;
|
||||
delete obj.$isNew;
|
||||
delete obj.$isDirty;
|
||||
}
|
||||
|
||||
export function generateInvoiceNumber(invoices) {
|
||||
const date = dayjs()
|
||||
|
||||
Reference in New Issue
Block a user