Skip to content

Commit 9d304c0

Browse files
Merge pull request #30 from StreetSupport/feature/3013-create-organisation-listing-and-search-interface
3013 - Fix eslint errors
2 parents aa5642e + 2cd7d19 commit 9d304c0

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

src/controllers/organisationController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import User from '../models/userModel.js';
88
import { asyncHandler } from '../utils/asyncHandler.js';
99
import { sendSuccess, sendCreated, sendNotFound, sendBadRequest, sendPaginatedSuccess } from '../utils/apiResponses.js';
1010
import { ROLES, ROLE_PREFIXES } from '../constants/roles.js';
11-
import { validateOrganisation } from 'schemas/organisationSchema.js';
11+
import { validateOrganisation } from '../schemas/organisationSchema.js';
1212
import { processAddressesWithCoordinates, updateLocationIfPostcodeChanged } from '../utils/postcodeValidation.js';
1313
import { decryptEmail } from '../utils/encryption.js';
14-
import { INote } from 'types/index.js';
14+
import { INote } from '../types/index.js';
1515

1616
// @desc Get all organisations with optional filtering and search
1717
// @route GET /api/organisations

src/controllers/serviceController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { Request, Response } from 'express';
22
import mongoose from 'mongoose';
33
import { asyncHandler } from '../utils/asyncHandler.js';
44
import { sendSuccess, sendCreated, sendNotFound, sendBadRequest } from '../utils/apiResponses.js';
5-
import GroupedService from 'models/groupedServiceModel.js';
6-
import Service from 'models/serviceModel.js';
7-
import { processAddressesWithCoordinates, updateLocationIfPostcodeChanged } from 'utils/postcodeValidation.js';
5+
import GroupedService from '../models/groupedServiceModel.js';
6+
import Service from '../models/serviceModel.js';
7+
import { processAddressesWithCoordinates, updateLocationIfPostcodeChanged } from '../utils/postcodeValidation.js';
88
import { validateGroupedService } from '../schemas/groupedServiceSchema.js';
99
import { IGroupedService } from '../types/index.js';
1010

src/controllers/userController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { validateUserCreate, validateUserUpdate } from '../schemas/userSchema.js
77
import { createAuth0User, deleteAuth0User, blockAuth0User, unblockAuth0User, updateAuth0UserRoles } from '../services/auth0Service.js';
88
import { sendSuccess, sendCreated, sendNotFound, sendBadRequest, sendInternalError, sendPaginatedSuccess, sendForbidden } from '../utils/apiResponses.js';
99
import { ROLE_PREFIXES, ROLES } from '../constants/roles.js';
10-
import Organisation from 'models/organisationModel.js';
10+
import Organisation from '../models/organisationModel.js';
1111

1212
// @desc Get all users with optional filtering and search
1313
// @route GET /api/users

src/middleware/authMiddleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import {
1818
sendUnauthorized
1919
} from '../utils/apiResponses.js';
2020
import { asyncHandler } from '../utils/asyncHandler.js';
21-
import Accommodation from 'models/accommodationModel.js';
22-
import GroupedService from 'models/groupedServiceModel.js';
21+
import Accommodation from '../models/accommodationModel.js';
22+
import GroupedService from '../models/groupedServiceModel.js';
2323

2424
type PreValidatedBannerData = z.output<typeof BannerPreUploadApiSchema>;
2525
// Extend Request interface to include user

src/models/serviceCategoryModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import mongoose from "mongoose";
2-
import { CategorySubCategorySchema, IServiceCategory } from "types/organisations/IServiceCategory.js";
2+
import { CategorySubCategorySchema, IServiceCategory } from "../types/organisations/IServiceCategory.js";
33

44
const serviceCategorySchema = new mongoose.Schema({
55
_id: {

src/routes/accommodationRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
updateAccommodation,
88
deleteAccommodation
99
} from '../controllers/accommodationController.js';
10-
import { accommodationsAuth } from 'middleware/authMiddleware.js';
10+
import { accommodationsAuth } from '../middleware/authMiddleware.js';
1111

1212
const router = Router();
1313

src/schemas/accommodationSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from 'zod';
22
import { ValidationResult, createValidationResult } from './validationHelpers.js';
33
import { LocationCoordinatesSchema } from './organisationSchema.js';
4-
import { AccommodationType, DiscretionaryValue, SupportOfferedType } from 'types/index.js';
5-
import { isValidPostcodeFormat } from 'utils/postcodeValidation.js';
4+
import { AccommodationType, DiscretionaryValue, SupportOfferedType } from '../types/index.js';
5+
import { isValidPostcodeFormat } from '../utils/postcodeValidation.js';
66

77
// Preprocessing helpers
88
const preprocessJSON = (val: unknown) => {

0 commit comments

Comments
 (0)