Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaubert committed Dec 18, 2024
1 parent 7465632 commit bbadde9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions server/services/imapService/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const run = async () => {
parsed
);

console.log(data)
// createWriteStream(parsed.attachments[2].filename ?? '').write(parsed.attachments[2].content)
}
}
Expand Down
15 changes: 12 additions & 3 deletions shared/referential/Laboratory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { z } from 'zod';

export const laboratoryNames = ['LDA 72', 'GIR 49'] as const satisfies string[]
export const laboratoryNameValidator = z.enum(laboratoryNames)
export type LaboratoryName = z.infer<typeof laboratoryNameValidator>
export const laboratoryNames = [
'SCL 34',
'LDA 66',
'LDA 72',
'SCL 91',
'GIR 49',
'CAP 29',
'CER 30',
'FYT',
] as const satisfies string[];
export const laboratoryNameValidator = z.enum(laboratoryNames);
export type LaboratoryName = z.infer<typeof laboratoryNameValidator>;
3 changes: 1 addition & 2 deletions shared/test/laboratoryFixtures.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { fakerFR } from '@faker-js/faker';
import randomstring from 'randomstring';
import { v4 as uuidv4 } from 'uuid';
import { Laboratory } from '../schema/Laboratory/Laboratory';

export const genLaboratory = (data?: Partial<Laboratory>): Laboratory => ({
id: uuidv4(),
name: randomstring.generate(),
name: 'GIR 49',
email: fakerFR.internet.email(),
...data,
});

0 comments on commit bbadde9

Please sign in to comment.