Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
1 result
Show changes
Commits on Source (2)
...@@ -835,7 +835,6 @@ module.exports = { ...@@ -835,7 +835,6 @@ module.exports = {
contactMail: 'a@a.com', contactMail: 'a@a.com',
structureType: 'autre', structureType: 'autre',
pmrAccess: false, pmrAccess: false,
remoteAccompaniment: false,
accountVerified: true, accountVerified: true,
freeWorkShop: false, freeWorkShop: false,
nbComputers: 0, nbComputers: 0,
...@@ -904,7 +903,6 @@ module.exports = { ...@@ -904,7 +903,6 @@ module.exports = {
contactMail: 'a@a.com', contactMail: 'a@a.com',
structureType: 'autre', structureType: 'autre',
pmrAccess: false, pmrAccess: false,
remoteAccompaniment: false,
accountVerified: true, accountVerified: true,
freeWorkShop: false, freeWorkShop: false,
nbComputers: 0, nbComputers: 0,
......
...@@ -102,7 +102,6 @@ const structuresSchema = mongoose.Schema({ ...@@ -102,7 +102,6 @@ const structuresSchema = mongoose.Schema({
pmrAccess: Boolean, pmrAccess: Boolean,
otherDescription: String, otherDescription: String,
exceptionalClosures: String, exceptionalClosures: String,
remoteAccompaniment: Boolean,
categories: {}, categories: {},
freeWorkShop: Boolean, freeWorkShop: Boolean,
nbComputers: Number, nbComputers: Number,
......
...@@ -41,8 +41,6 @@ export class StructureDto { ...@@ -41,8 +41,6 @@ export class StructureDto {
@IsNotEmpty() @IsNotEmpty()
pmrAccess: boolean; pmrAccess: boolean;
remoteAccompaniment: boolean;
@IsNotEmpty() @IsNotEmpty()
categories: any; categories: any;
......
...@@ -27,7 +27,6 @@ export class Structure { ...@@ -27,7 +27,6 @@ export class Structure {
this.pmrAccess = data.pmrAccess; this.pmrAccess = data.pmrAccess;
this.otherDescription = data.otherDescription; this.otherDescription = data.otherDescription;
this.exceptionalClosures = data.exceptionalClosures; this.exceptionalClosures = data.exceptionalClosures;
this.remoteAccompaniment = data.remoteAccompaniment;
this.categories = data.categories; this.categories = data.categories;
this.exceptionalClosures = data.exceptionalClosures; this.exceptionalClosures = data.exceptionalClosures;
this.freeWorkShop = data.freeWorkShop; this.freeWorkShop = data.freeWorkShop;
...@@ -92,10 +91,6 @@ export class Structure { ...@@ -92,10 +91,6 @@ export class Structure {
@Prop() @Prop()
exceptionalClosures: string; exceptionalClosures: string;
@Prop()
@IsNotEmpty()
remoteAccompaniment: boolean;
@Prop({ type: StructureCategories }) @Prop({ type: StructureCategories })
categories: StructureCategories; categories: StructureCategories;
......
...@@ -157,7 +157,6 @@ export class StructuresImportService { ...@@ -157,7 +157,6 @@ export class StructuresImportService {
contactMail: structure.courriel ?? null, contactMail: structure.courriel ?? null,
hours: this.convertFromOSMFormat(structure.horaires), hours: this.convertFromOSMFormat(structure.horaires),
accountVerified: true, accountVerified: true,
remoteAccompaniment: false,
pmrAccess: false, pmrAccess: false,
nbComputers: 0, nbComputers: 0,
nbPrinters: 0, nbPrinters: 0,
......
...@@ -136,7 +136,6 @@ describe('StructuresController', () => { ...@@ -136,7 +136,6 @@ describe('StructuresController', () => {
it('should update structure', async () => { it('should update structure', async () => {
await structuresController.update('azerty', { await structuresController.update('azerty', {
deletedAt: null, deletedAt: null,
remoteAccompaniment: null,
dataShareConsentDate: null, dataShareConsentDate: null,
personalOffers: [], personalOffers: [],
}); });
......
...@@ -43,7 +43,6 @@ export const mockGouvStructureToResinFormat = new Structure({ ...@@ -43,7 +43,6 @@ export const mockGouvStructureToResinFormat = new Structure({
contactPhone: '0478578285', contactPhone: '0478578285',
contactMail: 'mediatheque@mairie-craponne.fr', contactMail: 'mediatheque@mairie-craponne.fr',
pmrAccess: false, pmrAccess: false,
remoteAccompaniment: false,
categories: { categories: {
labelsQualifications: [], labelsQualifications: [],
accessModality: ['accesLibre'], accessModality: ['accesLibre'],
......
...@@ -16,7 +16,6 @@ export const structureDtoMock: StructureDto = { ...@@ -16,7 +16,6 @@ export const structureDtoMock: StructureDto = {
linkedin: '', linkedin: '',
otherDescription: '', otherDescription: '',
pmrAccess: false, pmrAccess: false,
remoteAccompaniment: false,
categories: '', categories: '',
freeWorkShop: '', freeWorkShop: '',
nbComputers: 0, nbComputers: 0,
......
...@@ -216,7 +216,6 @@ export const structureMockDto: StructureDto = { ...@@ -216,7 +216,6 @@ export const structureMockDto: StructureDto = {
updatedAt: new Date(), updatedAt: new Date(),
toBeDeletedAt: new Date(), toBeDeletedAt: new Date(),
deletedAt: new Date(), deletedAt: new Date(),
remoteAccompaniment: true,
dataShareConsentDate: new Date(), dataShareConsentDate: new Date(),
}; };
...@@ -317,7 +316,6 @@ export const mockStructureDocument = ({ ...@@ -317,7 +316,6 @@ export const mockStructureDocument = ({
accountVerified: true, accountVerified: true,
createdAt: new Date('2021-05-06T09:42:38.000Z'), createdAt: new Date('2021-05-06T09:42:38.000Z'),
updatedAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:38.000Z'),
remoteAccompaniment: null,
deletedAt: null, deletedAt: null,
dataShareConsentDate: null, dataShareConsentDate: null,
personalOffers: null, personalOffers: null,
...@@ -329,7 +327,6 @@ export const mockStructure: Structure = { ...@@ -329,7 +327,6 @@ export const mockStructure: Structure = {
dataShareConsentDate: null, dataShareConsentDate: null,
deletedAt: null, deletedAt: null,
personalOffers: [], personalOffers: [],
remoteAccompaniment: null,
updatedAt: null, updatedAt: null,
categories: { categories: {
accessModality: ['accesLibre'], accessModality: ['accesLibre'],
...@@ -431,7 +428,6 @@ export const mockDeletedStructure: Structure = { ...@@ -431,7 +428,6 @@ export const mockDeletedStructure: Structure = {
structureType: null, structureType: null,
categoriesWithPersonalOffers: {}, categoriesWithPersonalOffers: {},
dataShareConsentDate: new Date(2023, 1, 1), dataShareConsentDate: new Date(2023, 1, 1),
remoteAccompaniment: true,
hours: { hours: {
monday: { monday: {
open: false, open: false,
......
...@@ -1277,7 +1277,6 @@ export class StructuresServiceMock { ...@@ -1277,7 +1277,6 @@ export class StructuresServiceMock {
personalOffers: [personalOfferDocument], personalOffers: [personalOfferDocument],
createdAt: new Date('2021-05-06T09:42:38.000Z'), createdAt: new Date('2021-05-06T09:42:38.000Z'),
updatedAt: new Date('2021-05-06T09:42:50.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'),
remoteAccompaniment: true,
deletedAt: null, deletedAt: null,
dataShareConsentDate: null, dataShareConsentDate: null,
}) as StructureDocument; }) as StructureDocument;
...@@ -1541,7 +1540,6 @@ export const mockResinStructures: Array<Structure> = [ ...@@ -1541,7 +1540,6 @@ export const mockResinStructures: Array<Structure> = [
accountVerified: true, accountVerified: true,
createdAt: new Date('2021-05-06T09:42:38.000Z'), createdAt: new Date('2021-05-06T09:42:38.000Z'),
updatedAt: new Date('2021-05-06T09:42:50.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'),
remoteAccompaniment: false,
deletedAt: new Date('2121-05-06T09:42:38.000Z'), deletedAt: new Date('2121-05-06T09:42:38.000Z'),
dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'),
personalOffers: [], personalOffers: [],
...@@ -1645,7 +1643,6 @@ export const mockResinStructures: Array<Structure> = [ ...@@ -1645,7 +1643,6 @@ export const mockResinStructures: Array<Structure> = [
personalOffers: [], personalOffers: [],
createdAt: new Date('2021-05-06T09:42:38.000Z'), createdAt: new Date('2021-05-06T09:42:38.000Z'),
updatedAt: new Date('2021-05-06T09:42:50.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'),
remoteAccompaniment: false,
deletedAt: new Date('2121-05-06T09:42:38.000Z'), deletedAt: new Date('2121-05-06T09:42:38.000Z'),
dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'),
categoriesWithPersonalOffers: null, categoriesWithPersonalOffers: null,
...@@ -1748,7 +1745,6 @@ export const mockResinStructures: Array<Structure> = [ ...@@ -1748,7 +1745,6 @@ export const mockResinStructures: Array<Structure> = [
personalOffers: [], personalOffers: [],
createdAt: new Date('2021-05-06T09:42:38.000Z'), createdAt: new Date('2021-05-06T09:42:38.000Z'),
updatedAt: new Date('2021-05-06T09:42:50.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'),
remoteAccompaniment: false,
deletedAt: new Date('2121-05-06T09:42:38.000Z'), deletedAt: new Date('2121-05-06T09:42:38.000Z'),
dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'),
categoriesWithPersonalOffers: null, categoriesWithPersonalOffers: null,
......