Skip to content

Commit

Permalink
Merge branch 'ka.updateThreadFix' into Rotorsoft/8472-refactor-server…
Browse files Browse the repository at this point in the history
…-routes-utils-profile
  • Loading branch information
kurtisassad committed Jul 19, 2024
2 parents 7261d64 + def5320 commit 60d187e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ export async function __updateThread(
if (discordMeta) {
threadWhere.discord_meta = discordMeta;
}
if (!body) {
throw new AppError(Errors.NoBody);
}

const thread = await this.models.Thread.findOne({
where: threadWhere,
Expand Down Expand Up @@ -269,7 +266,7 @@ export async function __updateThread(
{ transaction },
);

if (versionHistory) {
if (versionHistory && body) {
// The update above doesn't work because it can't detect array changes so doesn't write it to db
await this.models.Thread.update(
{
Expand Down

0 comments on commit 60d187e

Please sign in to comment.