Skip to content

Instantly share code, notes, and snippets.

@alphamikle

alphamikle/tewtutin_11.ts

Last active Feb 11, 2021
Embed
What would you like to do?
@Injectable()
export class AppServiceV2 {
constructor(
@InjectRepository(Purse)
private readonly purseRepository: Repository<Purse>,
) {
}
async savePurse(purse: Purse) {
await this.purseRepository.save(purse);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment