mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
|
import { SubjectTokens } from '@logto/schemas';
|
||
|
import type { CommonQueryMethods } from '@silverhand/slonik';
|
||
|
|
||
|
import { buildInsertIntoWithPool } from '#src/database/insert-into.js';
|
||
|
|
||
|
export const createSubjectTokenQueries = (pool: CommonQueryMethods) => {
|
||
|
const insertSubjectToken = buildInsertIntoWithPool(pool)(SubjectTokens, {
|
||
|
returning: true,
|
||
|
});
|
||
|
|
||
|
return {
|
||
|
insertSubjectToken,
|
||
|
};
|
||
|
};
|