1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

ref: Collapse image data into one column

This commit is contained in:
Maksim Eltyshev 2022-06-21 12:01:41 +02:00
parent fe9fdc0191
commit 39fec45a7f
10 changed files with 102 additions and 86 deletions

View file

@ -38,7 +38,7 @@ module.exports = {
inputs.request,
);
if (!inputs.card.coverAttachmentId && attachment.isImage) {
if (!inputs.card.coverAttachmentId && attachment.image) {
await sails.helpers.cards.updateOne(inputs.card, {
coverAttachmentId: attachment.id,
});