Skip to content

Commit

Permalink
fix: calendar view update issue (#8566)
Browse files Browse the repository at this point in the history
Signed-off-by: mertmit <mertmit99@gmail.com>
  • Loading branch information
mertmit committed May 24, 2024
1 parent 74658d7 commit d89d9c0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/nocodb/src/models/CalendarView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d89d9c0

Please sign in to comment.