/api/backupProduct
This commit is contained in:
parent
3ec0bd90ec
commit
6de088e969
|
|
@ -35,6 +35,7 @@ import { screenShot } from "App/utils/screenShot";
|
|||
import { sendMessToZulip } from "App/utils/sendMessToZulip";
|
||||
import moment from "moment";
|
||||
import Product from "App/Models/Product";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
runtimeCheckLogs(Env.get("FOLDER_LOGS"));
|
||||
|
||||
|
|
@ -391,7 +392,7 @@ Route.post("/api/backupProduct", async ({ request, response }) => {
|
|||
line:res.data[index].line.join(","),
|
||||
file:res.data[index].fileName,
|
||||
warehouse:res.data[index].warehouse,
|
||||
created_at: Date.now()
|
||||
created_at: DateTime
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue