Skip to content

Commit

Permalink
fixed imports/exports
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Oct 3, 2024
1 parent 592d7da commit aac8830
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
13 changes: 7 additions & 6 deletions src/models/collections.model.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import User from './users.model'

const nanoid = require('nanoid')
const { DataTypes } = require('sequelize')
const User = require('./users.model').default

const STATUS_PRIVATE = 'PRI'
const STATUS_SHARED = 'SHA'
const STATUS_PUBLIC = 'PUB'
const STATUS_DELETED = 'DEL'
export const STATUS_PRIVATE = 'PRI'
export const STATUS_SHARED = 'SHA'
export const STATUS_PUBLIC = 'PUB'
export const STATUS_DELETED = 'DEL'

class Collection {
export default class Collection {
constructor(
{
uid = '',
Expand Down
5 changes: 3 additions & 2 deletions src/models/jobs.model.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable no-unused-vars */
import User from './users.model'

const { DataTypes } = require('sequelize')
const Attachment = require('./attachments.model')
const User = require('./users.model').default

const TYPE_BULK_COLLECTION_FROM_QUERY = 'BCQ'
const TYPE_DELETE_COLLECTION = 'DCO'
Expand All @@ -15,7 +16,7 @@ const STATUS_ARCHIVED = 'ARC'
const STATUS_STOPPING = 'STO'
const STATUS_KILLED = 'RIP'

class Job {
export default class Job {
constructor({
id = -1,
labels = ['job'],
Expand Down
3 changes: 2 additions & 1 deletion src/models/search-queries.model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import User from './users.model'

const crypto = require('crypto')
const { DataTypes } = require('sequelize')
const User = require('./users.model').default

class SearchQuery {
constructor({
Expand Down
2 changes: 1 addition & 1 deletion src/models/uploaded-images.model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import User from './users.model'
const { DataTypes } = require('sequelize')
const User = require('./users.model').default

class UploadedImage {
constructor({ uid = '', name = '', checksum = '', signature = '', thumbnail = '', creationDate = new Date() } = {}) {
Expand Down
3 changes: 2 additions & 1 deletion src/services/me/me.class.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable no-unused-vars */
import User from '../../models/users.model'

const debug = require('debug')('impresso/services:me')
const { BadRequest } = require('@feathersjs/errors')
const SequelizeService = require('../sequelize.service')
const User = require('../../models/users.model').default
const Profile = require('../../models/profiles.model')
const { measureTime } = require('../../util/instruments')

Expand Down
3 changes: 2 additions & 1 deletion src/services/password-reset/password-reset.class.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import User from '../../models/users.model'

const jwt = require('jsonwebtoken')
const User = require('../../models/users.model').default
const { NotImplemented, BadRequest, NotFound } = require('@feathersjs/errors')
const debug = require('debug')('impresso/services:password-reset')

Expand Down
3 changes: 2 additions & 1 deletion src/services/users/users.class.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* eslint-disable no-unused-vars */
import User from '../../models/users.model'

const { BadRequest, NotFound } = require('@feathersjs/errors')
const shorthash = require('short-hash')
const nanoid = require('nanoid')
Expand All @@ -7,7 +9,6 @@ const debug = require('debug')('impresso/services:users')
const { encrypt } = require('../../crypto')
const sequelize = require('../../sequelize')
const { sequelizeErrorHandler } = require('../../services/sequelize.utils')
const User = require('../../models/users.model').default
const Profile = require('../../models/profiles.model')

class Service {
Expand Down

0 comments on commit aac8830

Please sign in to comment.