We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vnd-machines/apps/backend/src/modules/brands/brands.subscriber.ts
Line 34 in e29fa31
return BrandEntity; } async beforeInsert(event: InsertEvent<BrandEntity>) { if (event.entity.lastSyncAt) return; // @ts-expect-error - TODO: add type const { newBrand } = await this.magexService.brands.postBrandsCreate({ formData: { name: JSON.stringify(event.entity.name), referTo: event.entity.referTo, }, }); Object.assign(event.entity, newBrand); event.entity.lastSyncAt = newBrand.updatedAt; } async beforeSoftRemove(event: RemoveEvent<BrandEntity>) { const brand = event.entity; await this.magexService.brands.deleteBrandsDeleteById({ id: brand._id, }); } async beforeUpdate(event: UpdateEvent<BrandEntity>) { const brand = event.entity; await this.magexService.brands.postBrandsEditById({ id: brand._id, formData: { name: JSON.stringify(brand.name), referTo: brand.referTo, }, }); } async fetchMagexRecords() { // @ts-expect-error - TODO: add type this.magexRecords = await this.magexService.brands.getBrandsByAccountName({ accountName: '[email protected]', });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vnd-machines/apps/backend/src/modules/brands/brands.subscriber.ts
Line 34 in e29fa31
The text was updated successfully, but these errors were encountered: