Commit 01f9856b authored by 成旭东's avatar 成旭东

视频置顶bug

parent ee4cace7
Pipeline #28851 passed with stage
in 5 minutes 11 seconds
......@@ -108,6 +108,10 @@ export default class EstateVideoService extends Service {
for (let i = 0; i < topVideoRecord.length; i++) {
const item = topVideoRecord[i];
if (item && Number(item.id) === Number(id)) {
continue;
}
await item.update({
is_top: 0,
updated_at: new Date(),
......@@ -118,6 +122,7 @@ export default class EstateVideoService extends Service {
if (!record) {
this.ctx.throw(400, '记录不存在');
}
await record.update({
...params,
updated_at: new Date(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment