We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59a75b3 + 415c9aa commit ed3fd6bCopy full SHA for ed3fd6b
1 file changed
src/routes/campaigns/campaignId/finance/otherCosts/_delete/index.ts
@@ -63,16 +63,16 @@ export default class OtherCostsDeleteRoute extends CampaignRoute<{
63
for (const attachment of attachments) {
64
try {
65
await deleteFromS3({ url: attachment.url });
66
+ await tryber.tables.WpAppqCampaignOtherCostsAttachment.do()
67
+ .where({ id: attachment.id })
68
+ .delete();
69
} catch (e) {
70
console.error(
71
`Error deleting attachment from S3: ${attachment.url}`,
72
e
73
);
74
throw new Error("Error deleting attachment from S3");
75
}
- await tryber.tables.WpAppqCampaignOtherCostsAttachment.do()
- .where({ id: attachment.id })
- .delete();
76
77
78
0 commit comments