Skip to content

Commit

Permalink
some schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
varortz committed Oct 5, 2023
1 parent cd10023 commit 3c53d00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@calblueprint/prettier-config": "^0.0.1",
"@supabase/supabase-js": "^2.37.0",
"@supabase/supabase-js": "^2.36.0",
"@types/node": "20.6.3",
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
Expand Down
5 changes: 3 additions & 2 deletions src/app/interest/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { useState } from 'react';
import { UUID } from 'crypto';
import { insertInterest } from '../../api/supabase/queries/interest';
import { Interest } from '../../types/schemaTypes';
import styles from '../page.module.css';
Expand All @@ -12,12 +13,12 @@ export default function Interest() {
if (reason !== '') {
const newInterest: Interest = {
// hardcoded values for now
id: crypto.randomUUID(),
id: crypto.randomUUID() as UUID,
listing_id: '36b8f84d-df4e-4d49-b662-bcde71a8764f',
listing_type: 'IJP6 Test',
user_id: '36b8f84d-df4e-4d49-b662-bcde71a8764f',
form_response: {
interestType: ['IJP-6-test'],
interestReason: ['IJP-6-test'],
whyInterested: reason,
},
};
Expand Down
4 changes: 2 additions & 2 deletions src/types/schemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export interface Profile {
}

export interface Interest {
id: UUID | string;
id: UUID;
listing_id: UUID;
listing_type: string;
user_id: UUID;
form_response: {
interestType: string[];
interestReason: string[];
whyInterested: string;
};
}

0 comments on commit 3c53d00

Please sign in to comment.