```coffeescript
DB = require './db'
Project = require './project'

module.exports =
class Projects
  properties:
    _id: null
    title: null
    icon: null
    paths: []
    settings: {}
    group: null
    devMode: false
    template: null

  db: null

  initialize: () ->
    @db = new DB()

  getAll: ->
    projectSettings = @db.findAll()
    projects = []
    for setting in projectSettings
      if setting.paths?
        project = new Project(setting)
        projects.push(project)

    return projects```

Add callback to get all
user
```coffeescript
DB = require './db'
Project = require './project'

module.exports =
class Projects
  db: null

  constructor: ->
    @db = new DB()

  getAll: (callback) ->
    @db.findAll (projectSettings) ->
      projects = []
      for setting in projectSettings
        if setting.paths?
          project = new Project(setting)
          projects.push(project)

      callback(projects)```
assistant