Skip to content

Instantly share code, notes, and snippets.

@Razzwan
Last active March 9, 2018 12:58
Show Gist options
  • Save Razzwan/388927c0bc08f12c7342af5267dfdd14 to your computer and use it in GitHub Desktop.
Save Razzwan/388927c0bc08f12c7342af5267dfdd14 to your computer and use it in GitHub Desktop.
@Component()
export class MeService {
constructor() {}
async someMethod(user, data) {
// documented by sequelize, familiar to anyone who has read the library's documentation
await user.$create<UserOneSignal>('oneSignal', data);
}
async reusageInSecondPlace(user, data) {
// documented by sequelize, familiar to anyone who has read the library's documentation
await user.$create<UserOneSignal>('oneSignal', data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment