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