import { get, post, auth, protectedRoutes } from "$lib/utils"; export async function load({ cookies, request, url, params }) { let token = cookies.get("token"); let rate, rates = { USD: 1 }; let user; if (token) { try { user = await get("/me", auth(cookies)); } catch (e) {} } return { user }; } ://git.coinos.io/coinos-server.git/atom/migrations/20181008052713-addUserChannels.js?h=readmeUpdate' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20181008052713-addUserChannels.js
blob: 29692445677781b9d9f1abd5e22ea03d181231f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

module.exports = {
  up: (queryInterface, Sequelize) => {
      return queryInterface.createTable('users_channels', { user_id: Sequelize.INTEGER, channel_id: Sequelize.INTEGER });
  },

  down: (queryInterface, Sequelize) => {
      return queryInterface.dropTable('users_channels');
  }
};