Fix TS
This commit is contained in:
@@ -50,7 +50,6 @@ import {initS3} from "./utils/s3";
|
|||||||
|
|
||||||
//Services
|
//Services
|
||||||
import servicesPlugin from "./plugins/services";
|
import servicesPlugin from "./plugins/services";
|
||||||
import {prepareIncomingInvoices} from "./modules/cron/prepareIncomingInvoices";
|
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const app = Fastify({ logger: false });
|
const app = Fastify({ logger: false });
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ export function bankStatementService(server: FastifyInstance) {
|
|||||||
for (const accId of affectedAccounts) {
|
for (const accId of affectedAccounts) {
|
||||||
await server.db
|
await server.db
|
||||||
.update(bankaccounts)
|
.update(bankaccounts)
|
||||||
|
//@ts-ignore
|
||||||
.set({syncedAt: dayjs().utc().toISOString()})
|
.set({syncedAt: dayjs().utc().toISOString()})
|
||||||
.where(eq(bankaccounts.id, accId))
|
.where(eq(bankaccounts.id, accId))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user