Skip to content

Commit

Permalink
ar(feat) [DPCP-40]: Parse Services.
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 25, 2024
1 parent 86dda3a commit 8e189ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions prisma/mock/listings.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createMockTerm, mockTerm } from './taxonomies.mts';

import { HOMock } from './helpers.mts';

const mockLocation = {
const mockLocation = () => ({
name: faker.company.name(),
geo: {
lat: faker.location.latitude(),
Expand All @@ -25,7 +25,7 @@ const mockLocation = {
zipCode: '000000',
phone: '01010101010',
},
};
});

export const createMockListing = ({ community, user, communityFavorited, favorited, audiences, model }: any) => {
const data = {
Expand Down
6 changes: 3 additions & 3 deletions prisma/mock/public.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { faker } from '@faker-js/faker';

import { HOMock } from './helpers.mts';

const mockLocation = {
const mockLocation = () => ({
name: faker.company.name(),
geo: {
lat: faker.location.latitude(),
Expand All @@ -17,7 +17,7 @@ const mockLocation = {
country: 'Sit',
zipCode: '000000',
},
};
});

export const createMockPubListing = ({
user,
Expand Down Expand Up @@ -104,7 +104,7 @@ export const createMockPubListing = ({
scheduledFor: faker.date.future(),
value: faker.number.float(3500),
status: 'ACTIVE',
location: mockLocation,
location: mockLocation(),
taxonomies,
};

Expand Down

0 comments on commit 8e189ff

Please sign in to comment.