MCPcopy Create free account
hub / github.com/coderwhy/coderhub /

Class

src/service/file.service.js:3–3  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const connection = require('../app/database');
2
3class FileService {
4 async createAvatar(filename, mimetype, size, userId) {
5 const statement = `INSERT INTO avatar (filename, mimetype, size, user_id) VALUES (?, ?, ?, ?)`;
6 const [result] = await connection.execute(statement, [filename, mimetype, size, userId]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected