Skip to content

Commit

Permalink
Added deafult for last_checked
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisassad committed Oct 15, 2024
1 parent 4f2bb56 commit fe712b8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@hicommonwealth/model';
import type { Requirement } from '@hicommonwealth/shared';
import moment from 'moment';
import { FindOptions, Op, Sequelize } from 'sequelize';
import { FindOptions, Op } from 'sequelize';
import { config } from '../../config';

/**
Expand Down Expand Up @@ -58,8 +58,7 @@ export async function refreshMembershipsForAddress(
membershipsToCreate.push({
group_id: group.id!,
address_id: address.id!,
// @ts-expect-error StrictNullChecks
last_checked: null,
last_checked: new Date(),
});
continue;
}
Expand Down Expand Up @@ -143,6 +142,6 @@ function computeMembership(
group_id: group.id!,
address_id: address.id!,
reject_reason: isValid ? null : messages,
last_checked: Sequelize.literal('CURRENT_TIMESTAMP') as any,
last_checked: new Date(),
};
}

0 comments on commit fe712b8

Please sign in to comment.