Add channel creation, subscription
This commit is contained in:
parent
def0cbb93a
commit
5292540d1d
9 changed files with 109 additions and 40 deletions
|
@ -25,7 +25,13 @@ sub run {
|
|||
}
|
||||
|
||||
my $schema = $self->app->schema;
|
||||
|
||||
|
||||
$c->schema->resultset('Topic')->create(
|
||||
{
|
||||
name => 'default'
|
||||
}
|
||||
);
|
||||
|
||||
$schema->resultset('User')->create(
|
||||
{
|
||||
email => 'test@example.com',
|
||||
|
@ -91,12 +97,6 @@ sub run {
|
|||
}
|
||||
);
|
||||
|
||||
$c->schema->resultset('DeviceToken')->create(
|
||||
{
|
||||
name => 'default'
|
||||
}
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue