Skip to content

Commit

Permalink
Merge branch 'feature/new-seminars-application' of github.com:island-…
Browse files Browse the repository at this point in the history
…is/island.is into feature/new-seminars-application
  • Loading branch information
sigruntg committed Jan 6, 2025
2 parents 3c11ceb + 117a102 commit fe653d8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libs/api/domains/seminars-ver/src/lib/seminars.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SeminarsService {
async checkIndividuals(
auth: User,
nationalIds: Array<string>,
courseID: number,
courseID: string,
): Promise<Array<IndividualDTO>> {
const individuals = this.seminarsService.checkIndividuals(
auth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({

const getAreIndividualsValid = useLazyAreIndividualsValid()
const getIsCompanyValidCallback = useCallback(
async (nationalIds: Array<string>, courseID: number) => {
async (nationalIds: Array<string>, courseID: string) => {
const { data } = await getAreIndividualsValid({
nationalIds,
courseID,
Expand Down Expand Up @@ -138,10 +138,8 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({
'initialQuery',
'',
) as string
const res = await getIsCompanyValidCallback(
nationalIds,
parseInt(seminarId),
)
// console.log('seminarId', seminarId)
const res = await getIsCompanyValidCallback(nationalIds, seminarId)

let tmpNotValid = false
const updatedParticipantList: Array<Participant> = participants.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const IS_COMPANY_VALID = `
export const ARE_INDIVIDUALS_VALID = `
query AreIndividualsValid(
$nationalIds: [String!]!
$courseID: Float!
$courseID: String!
) {
areIndividualsValid(
nationalIds: $nationalIds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useLazyAreIndividualsValid = () => {
},
{
nationalIds: Array<string>
courseID: number
courseID: string
}
>(
gql`
Expand Down
4 changes: 2 additions & 2 deletions libs/clients/seminars-ver/src/clientConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
"name": "courseID",
"in": "query",
"schema": {
"type": "integer",
"format": "int64"
"type": "string",
"format": "uuid"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion libs/clients/seminars-ver/src/lib/seminars.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class SeminarsClientService {
async checkIndividuals(
auth: User,
nationalIds: Array<string>,
courseID: number,
courseID: string,
): Promise<Array<IndividualDTO>> {
return await this.individualApiWithAuth(auth).apiIndividualGet({
courseID,
Expand Down

0 comments on commit fe653d8

Please sign in to comment.