findById
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-07 08:05:48 +01:00
parent c397757762
commit d3564209ba
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ module.exports = Self => {
} }
try { try {
const entry = await Self.app.models.Entry.findOne({where: {id: entryId}}, myOptions); const entry = await Self.app.models.Entry.findById(entryId, null, myOptions);
await entry.updateAttribute('observationEditorFk', userId, myOptions); await entry.updateAttribute('observationEditorFk', userId, myOptions);
if (tx) await tx.commit(); if (tx) await tx.commit();
} catch (e) { } catch (e) {