Browse Source

fix: calendar view update issue (#8566)

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/8573/head
Mert E 6 months ago committed by GitHub
parent
commit
d89d9c0d79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      packages/nocodb/src/models/CalendarView.ts

12
packages/nocodb/src/models/CalendarView.ts

@ -89,15 +89,9 @@ export default class CalendarView implements CalendarType {
const updateObj = extractProps(body, ['fk_cover_image_col_id', 'meta']);
if (body.calendar_range) {
await ncMeta.metaDelete(
null,
null,
MetaTable.CALENDAR_VIEW_RANGE,
{},
{
fk_view_id: calendarId,
},
);
await ncMeta.metaDelete(null, null, MetaTable.CALENDAR_VIEW_RANGE, {
fk_view_id: calendarId,
});
// if calendar range is updated, delete cache
await NocoCache.del(`${CacheScope.CALENDAR_VIEW}:${calendarId}`);
await CalendarRange.bulkInsert(

Loading…
Cancel
Save